-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
404 redirect bug #6356
404 redirect bug #6356
Conversation
Gatsby Cloud Build Reportethereum-org-website-dev 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 12m PerformanceLighthouse report
|
Test with linked Netlify deploy in description :) |
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.
@corwintines I think that now it is always resolving a 404.
// valid url
curl -I https://6295310882fe9e2a5c53ad57--ethdotorg-corwin-test.netlify.app/en/staking
HTTP/2 404
// invalid url, correct response
curl -I https://6295310882fe9e2a5c53ad57--ethdotorg-corwin-test.netlify.app/asadasd
HTTP/2 404
// invalid nested url, correct response
curl -I https://6295310882fe9e2a5c53ad57--ethdotorg-corwin-test.netlify.app/en/staking/asadasd
HTTP/2 404
On existing paths, it is first returning a 404 but then it fetches the correct content.
=====
I would suggest turning off the flag generateMatchPathRewrites
in our two redirect packages.
- https://www.gatsbyjs.com/plugins/gatsby-plugin-netlify/
- https://www.gatsbyjs.com/plugins/gatsby-plugin-gatsby-cloud/
That will avoid the rule gatsby-plugin-intl
is writing for us, ending up in these files.
More context: that intl plugin is writing some matchPath
s for each lang we have https://github.com/wiziple/gatsby-plugin-intl/blob/master/src/gatsby-node.js#L102
@pettinarip will the recent change to our intl plugin #7022 change any of this? |
I doubt it. The plugin is not touching many of these things. I mean, we are still doing the same as before in terms of redirects and 404s. But I can take a look at this. I think it is related to the nested routes problem #6488 |
@corwintines closing this in favor of #7137 |
Description
https://6295310882fe9e2a5c53ad57--ethdotorg-corwin-test.netlify.app/en/testsestse
Can test with the above link, personal Netlify deploy to test production behaviour.
Related Issue