Skip to content

Commit c30a7fd

Browse files
committed
fix: push empty parameters on empty href submit
1 parent 3325edf commit c30a7fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export default function App() {
3939
useEffect(() => {
4040
if (href && new URLSearchParams(location.search).get("href") != href) {
4141
history.pushState(null, "", "?href=" + href);
42+
} else if (href === "") {
43+
history.pushState(null, "", location.pathname);
4244
}
4345
}, [href]);
4446

0 commit comments

Comments
 (0)