Skip to content

Commit 752d05b

Browse files
authored
fix: back button (#399)
1 parent 0a10c9e commit 752d05b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function App() {
3636

3737
useEffect(() => {
3838
if (href && new URLSearchParams(location.search).get("href") !== href)
39-
history.replaceState(null, "", "?href=" + href);
39+
history.pushState(null, "", "?href=" + href);
4040
else history.replaceState(null, "", null);
4141
}, [href]);
4242

0 commit comments

Comments
 (0)