From aa1945d9ae62a2ef284af2971d1e29a23990e13c Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Wed, 30 Nov 2022 11:27:26 +0800 Subject: [PATCH] Revert "docs: fix 404" This reverts commit 1f0fbd4dcff90f89b8baa9b8f4184f2489fe0593. --- site/theme/template/Layout/index.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/site/theme/template/Layout/index.tsx b/site/theme/template/Layout/index.tsx index 298201c576..d5995c8ff1 100644 --- a/site/theme/template/Layout/index.tsx +++ b/site/theme/template/Layout/index.tsx @@ -32,10 +32,6 @@ if (typeof window !== 'undefined') { location.href = location.href.replace('next.ant.design', 'ant.design'); } - if (!location.pathname.endsWith('/')) { - location.pathname += '/'; - } - // eslint-disable-next-line global-require require('../../static/style');