From a00acc185c2aca1f680e8fe329e6f4a7f48f4add Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 3 Dec 2020 00:19:31 -0500 Subject: [PATCH] Fix multiple hashes added to route --- src/components/appRouter.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/appRouter.js b/src/components/appRouter.js index 333058e1c8..ee35a5abb7 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -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; }