Skip to content

Commit

Permalink
fix sharing code replacing history with a bad link
Browse files Browse the repository at this point in the history
  • Loading branch information
luka-bacic committed Nov 20, 2023
1 parent 07f2091 commit 96c8e6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ export default function App() {
setError(e.message);
}
} finally {
window.history.replaceState({}, document.title, '/');
window.history.replaceState(
{},
document.title,
window.location.origin + window.location.pathname
);
}
}
}, []);
Expand Down

0 comments on commit 96c8e6b

Please sign in to comment.