-
-
Notifications
You must be signed in to change notification settings - Fork 167
fix: route not found error when access to static segment route in group route #1680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
commit: |
groupPathLookup.set(pagePath, definedPath); | ||
} | ||
const id = joinPath(...pathItems, 'page'); | ||
const id = joinPath(pagePath, 'page').replace(/^\//, ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it to use groupless path.
This should be the same as what the static page without slugs does:
As a result, the route path should be retrieved by the following if
statement, and the error should be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep! this looks right to me, thanks for the fix!
close #1669