Skip to content

Commit c7583a2

Browse files
committed
normalize match pathname when converting to key
1 parent 7b25b93 commit c7583a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/tabs/useRouterTabs.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export const useRouterTabs = <
6363
getUiModelKey,
6464
} = options;
6565

66-
const getTabKey = (match: DataRouteMatch) => match.pathname;
66+
const getTabKey = (match: DataRouteMatch) =>
67+
normalizePathname(match.pathname);
6768

6869
const isOpenFor = useCallback(
6970
(match: DataRouteMatch) => (path: string) => {

0 commit comments

Comments
 (0)