Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit f553cda

Browse files
committed
fix(module): fix generate router permalink concatenation
fixes #103
1 parent 90bc0b3 commit f553cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/content/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const interceptRoutes = (nuxt, routePaths) => {
3333
nuxt.extendRoutes(routes => {
3434
routes.forEach(route => {
3535
if (routePaths.has(route.name)) {
36-
route.path = join('/', routePaths.get(route.name))
36+
route.path = '/' + routePaths.get(route.name)
3737
} else if (route.children) {
3838
route.children.forEach(nestedRoute => {
3939
if (routePaths.has(nestedRoute.name)) {

0 commit comments

Comments
 (0)