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

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;
}