Skip to content

Commit

Permalink
chore: path
Browse files Browse the repository at this point in the history
  • Loading branch information
lencx committed Nov 13, 2023
1 parent 8569094 commit 5154d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function BaseLayout() {
const uri = params.get('uri');
if (uri) {
const url = decodeURIComponent(encodeURIComponent(uri));
navigate(url);
navigate(new URL(url)?.pathname);
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit 5154d75

Please sign in to comment.