Fix multiple hashes added to route

This commit is contained in:
Bill Thornton 2020-12-03 00:19:31 -05:00
parent 827a065de0
commit a00acc185c

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