Push new routes to the history stack instead of replacing it

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2022-11-16 11:51:47 +01:00
parent 3fbd832ef1
commit d97e4b5f7b
+1 -1
View File
@@ -84,7 +84,7 @@ export const push = (newRoute: Route): void => {
? "#" + routeToPath(newRoute)
: routeToPath(newRoute);
window.history.replaceState(newRoute, documentTitle, path);
window.history.pushState(newRoute, documentTitle, path);
};
export const pop = (): void => {