mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Push new routes to the history stack instead of replacing it
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
+1
-1
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user