Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(docsite): remove double basePath in router.replace (#1453)

rubyycheung804010c0621a
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx
index 28e42c2e1e..0f41e1b024 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx
@@ -17,7 +17,6 @@ import {
XDS_DESIGN_AVATAR,
FILTER_COLUMNS,
PROFILE_CRAFT_ITEMS,
- basePath,
} from './constants';
import {TemplateCard} from './TemplateCard';
import {AIComposer} from './AIComposer';
@@ -382,7 +381,7 @@ function DocsiteLandingTemplate() {
const qs = params.toString();
router.replace(
- `${basePath}/pages/docsite/${qs ? '?' + qs : ''}`,
+ `/pages/docsite/${qs ? '?' + qs : ''}`,
{scroll: false},
);
}, [