From d97e4b5f7b21c55d3f26976b7925719d7a75b9b7 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Wed, 16 Nov 2022 11:51:47 +0100 Subject: [PATCH] Push new routes to the history stack instead of replacing it Signed-off-by: Sebastian Martinez --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index 587dfd31f..c9e3628bb 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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 => {