We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4ce81 commit d0ddfa3Copy full SHA for d0ddfa3
index.html
@@ -22,12 +22,12 @@
22
return;
23
}
24
25
- sessionStorage.removeItem("spa-redirect");
26
const normalizedPath = storedPath.startsWith("/")
27
? storedPath
28
: `/${storedPath}`;
29
- const newUrl = window.location.origin + normalizedPath;
30
- window.history.replaceState(null, "", newUrl);
+ window.history.replaceState(null, "", normalizedPath);
+ sessionStorage.removeItem("spa-redirect");
+ window.dispatchEvent(new Event("popstate"));
31
})();
32
</script>
33
<script type="module" src="/src/main.jsx"></script>
0 commit comments