Skip to content

Commit

Permalink
fix: remove trailing slash of routes
Browse files Browse the repository at this point in the history
fixes problems with hash mode router
  • Loading branch information
Pooya Parsa committed Nov 9, 2017
1 parent d4191d0 commit 0957ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templates/f7-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function recursiveRoutes(routes, tab, components) {
}

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

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

0 comments on commit 0957ba6

Please sign in to comment.