[X] 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
When serving a Gatsby site with server-side rendering (SSR), encoded URLs are not correctly translated, resulting in a 500 internal server error.
TypeError: Cannot destructure property 'params' of '(0 , _reachRouter.match)(...)' as it is null.
Preliminary Checks
Description
When serving a Gatsby site with server-side rendering (SSR), encoded URLs are not correctly translated, resulting in a 500 internal server error.
TypeError: Cannot destructure property 'params' of '(0 , _reachRouter.match)(...)' as it is null.
Reproduction Link
CODESANDBOX
Steps to Reproduce
Expected Result
Translating the url and showing the exact thing is showing with the decoded url, this does not happen if i am not using gatsby serve & ssr.
Actual Result
TypeError: Cannot destructure property 'params' of '(0 , _reachRouter.match)(...)' as it is null.
Environment
Config Flags
DEV_SSR: true