mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2160 from thornbill/too-many-hashes
Fix multiple hashes added to route
This commit is contained in:
commit
c640e17ea8
1 changed files with 5 additions and 0 deletions
|
@ -124,6 +124,11 @@ class AppRouter {
|
||||||
}
|
}
|
||||||
|
|
||||||
show(path, options) {
|
show(path, options) {
|
||||||
|
// ensure the path does not start with '#!' since the router adds this
|
||||||
|
if (path.startsWith('#!')) {
|
||||||
|
path = path.substring(2);
|
||||||
|
}
|
||||||
|
|
||||||
if (path.indexOf('/') !== 0 && path.indexOf('://') === -1) {
|
if (path.indexOf('/') !== 0 && path.indexOf('://') === -1) {
|
||||||
path = '/' + path;
|
path = '/' + path;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue