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