matchPath seems to be broken since adapters
laurenskling opened this issue · comments
Laurens Kling commented
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
Boom:
https://abmulderbv.netlify.app/searchagent/unsubscribe/354689y324985674398752348/email@example.com
(before hydration, you see the page working correctly from SSR)
Building the site locally and running serve
it works as well on 5.13
I create the page like:
createPage({
path: `${searchagentPage.slug}/unsubscribe`,
matchPath: `${searchagentPage.slug}/unsubscribe/:id/:email`,
component: unsubscribeTemplate,
context: {
id: searchagentPage.id,
},
});
I just now realised it doesn't work anymore. It must be since adapters in 5.12
Reproduction Link
x
Steps to Reproduce
- have a matchPath created page.
- go to it.
- see it go boom.
...
Expected Result
No boom.
Actual Result
boom.
Environment
System:
OS: macOS 13.6.1
CPU: (8) arm64 Apple M2
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.19.1 - /var/folders/50/3fndm5d13gs_kr96nwxpxd9c0000gn/T/yarn--1709413201340-0.6552245016050171/node
Yarn: 1.22.19 - /var/folders/50/3fndm5d13gs_kr96nwxpxd9c0000gn/T/yarn--1709413201340-0.6552245016050171/yarn
npm: 10.2.4 - /usr/local/bin/npm
Languages:
Python: 3.10.9 - /usr/local/bin/python
Browsers:
Chrome: 122.0.6261.94
Safari: 17.1
Config Flags
No response