1
0
Fork 0
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:
Bill Thornton 2020-12-03 14:50:55 -05:00 committed by GitHub
commit c640e17ea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,6 +124,11 @@ class AppRouter {
}
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) {
path = '/' + path;
}