diff --git a/404.html b/404.html
index 57f85f5..fc683eb 100644
--- a/404.html
+++ b/404.html
@@ -3,7 +3,7 @@
Page Not Found
diff --git a/src/layouts/base.tsx b/src/layouts/base.tsx
index 3ca65e0..992ee0a 100644
--- a/src/layouts/base.tsx
+++ b/src/layouts/base.tsx
@@ -15,13 +15,14 @@ export default function BaseLayout() {
useEffect(() => {
if (window.location.search) {
const params = new URLSearchParams(window.location.search);
- const path = params.get('path');
- if (path) {
- navigate(`${window.location.origin}/${path}`);
+ const uri = params.get('uri');
+ if (uri) {
+ const url = decodeURIComponent(encodeURIComponent(uri));
+ navigate(url);
}
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [window.location.search])
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [window.location.search]);
useEffect(() => {
const theme = localStorage.getItem('theme');