diff --git a/src/renderer/navigation.ts b/src/renderer/navigation.ts index 9dcb84afc4..f7d5b6e435 100644 --- a/src/renderer/navigation.ts +++ b/src/renderer/navigation.ts @@ -18,8 +18,11 @@ if (ipcRenderer) { } export function navigate(location: LocationDescriptor) { - if (history.location.pathname === location) return; + const currentLocation = navigation.getPath(); navigation.push(location); + if (currentLocation === navigation.getPath()) { + navigation.goBack(); // prevent sequences of same url in history + } } export interface IURLParams

{