[+] Add default path name when there are none

This commit is contained in:
Hykilpikonna
2019-10-14 18:02:02 -04:00
parent 88b0ef752c
commit e7d5e766e3
+1
View File
@@ -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