Skip to content

Commit 0957ba6

Browse files
author
Pooya Parsa
committed
fix: remove trailing slash of routes
fixes problems with hash mode router
1 parent d4191d0 commit 0957ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/templates/f7-router.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function recursiveRoutes(routes, tab, components) {
99
}
1010

1111
// Fix path for F7
12-
route.path = (route.path.replace(/[\*\?]/g, '') + '/').replace('//', '/')
12+
route.path = route.path.replace(/[\*\?]/g, '')
1313

1414
route._name = '_' + hash(route.component)
1515
components.push({ _name: route._name, component: route.component, name: route.name, chunkName: route.chunkName })

0 commit comments

Comments
 (0)