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 3325edf commit c30a7fdCopy full SHA for c30a7fd
src/app.tsx
@@ -39,6 +39,8 @@ export default function App() {
39
useEffect(() => {
40
if (href && new URLSearchParams(location.search).get("href") != href) {
41
history.pushState(null, "", "?href=" + href);
42
+ } else if (href === "") {
43
+ history.pushState(null, "", location.pathname);
44
}
45
}, [href]);
46
0 commit comments