Skip to content

Commit 5041f4d

Browse files
committed
fix(core): fix page routing
1 parent 580b063 commit 5041f4d

File tree

1 file changed

+1
-1
lines changed
  • packages/smooth-core/src/client

1 file changed

+1
-1
lines changed

packages/smooth-core/src/client/Page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function getIndexPath(isIndex, name) {
1313

1414
function getRoutePath(isIndex, isContent, name) {
1515
if (isContent) return isIndex ? '/:slug*' : `/${name}/:slug+`
16-
return getIndexPath()
16+
return getIndexPath(isIndex, name)
1717
}
1818

1919
function getPage(filePath) {

0 commit comments

Comments
 (0)