Skip to content

Conversation

r4ai
Copy link
Contributor

@r4ai r4ai commented Sep 8, 2025

close #1669

  • add a failing e2e test
  • fix the bug
  • add unit tests
  • refactor the code
Copy link

vercel bot commented Sep 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
waku Ready Ready Preview Sep 8, 2025 9:42pm
Copy link

codesandbox-ci bot commented Sep 8, 2025

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.

Copy link

pkg-pr-new bot commented Sep 8, 2025

Open in StackBlitz

npm i https://pkg.pr.new/wakujs/waku@1680

commit: 7e7a502

groupPathLookup.set(pagePath, definedPath);
}
const id = joinPath(...pathItems, 'page');
const id = joinPath(pagePath, 'page').replace(/^\//, '');
Copy link
Contributor Author

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:

https://github.com/r4ai/waku/blob/01b1d3c8bcf833fd9c128d7c534536adedc90e75/packages/waku/src/router/create-pages.ts#L451-L456

As a result, the route path should be retrieved by the following if statement, and the error should be fixed.

https://github.com/r4ai/waku/blob/01b1d3c8bcf833fd9c128d7c534536adedc90e75/packages/waku/src/router/create-pages.ts#L343-L345

@dai-shi dai-shi requested a review from tylersayshi September 8, 2025 10:43
Copy link
Member

@tylersayshi tylersayshi left a 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!

@dai-shi dai-shi mentioned this pull request Sep 7, 2025
@dai-shi dai-shi merged commit c99e983 into wakujs:main Sep 9, 2025
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants