feat: URL trailing slashes remove + All pages basepath
This commit is contained in:
@@ -32,7 +32,11 @@ module.exports = (alerts, socket) => {
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.fetch('')
|
||||
let basePath = window.location.pathname.slice(0, -4)
|
||||
if (basePath.length > 1) {
|
||||
basePath = basePath.slice(1)
|
||||
}
|
||||
this.fetch(basePath)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user