From e7d5e766e374894453e6f15f010dfbec0b95f496 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 14 Oct 2019 18:02:02 -0400 Subject: [PATCH] [+] Add default path name when there are none --- src/components/navigation/navigation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/navigation/navigation.ts b/src/components/navigation/navigation.ts index 84c9699..bbfb6f3 100644 --- a/src/components/navigation/navigation.ts +++ b/src/components/navigation/navigation.ts @@ -21,6 +21,7 @@ export default class Navigation extends Vue { // Set history state let url = window.location.pathname; + if (url == '') url = '/overall'; window.history.replaceState({lastTab: url.substring(1)}, '', url); // Create history state listener