Skip to content

Commit 440a080

Browse files
committed
fix: update key generation in MainLayout to remove slashes from pathname
1 parent e3eb1e2 commit 440a080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/MainLayout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const MainLayout: React.FC<PageProps> = ({ children, location }) => {
2626
mode="popLayout"
2727
initial={isMobile ? false : true}
2828
presenceAffectsLayout
29-
key={location.pathname}
29+
key={location.pathname.replace(/\//g, "")}
3030
>
3131
<S.Container key="container">
3232
<Header key="header" />

0 commit comments

Comments
 (0)