[F] Fix empty pathname detection with '/'

This commit is contained in:
Hykilpikonna
2019-10-14 22:14:46 -04:00
parent 6a34e9f706
commit 300ff04f2e
+1 -1
View File
@@ -21,7 +21,7 @@ export default class Navigation extends Vue
{
// Set history state
let url = window.location.pathname;
if (url == '') url = '/overall';
if (url == '/' || url == '') url = '/overall';
window.history.replaceState({lastTab: url.substring(1)}, '', url);
// Update initial index