[F] Fix empty pathname detection with '/'
This commit is contained in:
@@ -21,7 +21,7 @@ export default class Navigation extends Vue
|
|||||||
{
|
{
|
||||||
// Set history state
|
// Set history state
|
||||||
let url = window.location.pathname;
|
let url = window.location.pathname;
|
||||||
if (url == '') url = '/overall';
|
if (url == '/' || url == '') url = '/overall';
|
||||||
window.history.replaceState({lastTab: url.substring(1)}, '', url);
|
window.history.replaceState({lastTab: url.substring(1)}, '', url);
|
||||||
|
|
||||||
// Update initial index
|
// Update initial index
|
||||||
|
|||||||
Reference in New Issue
Block a user