-
Notifications
You must be signed in to change notification settings - Fork 89
[Bug]: Pages are not redirected to url with trailing slash #998
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
Comments
Hello! Thanks for raising up this issue. Trailing slash is not enabled by default by Next, so you'll have to enable it in the config. Instructions on how to do so can be found in the Next Docs. I also noticed you have two next plugins installed, you can remove Let me know if that works for you! |
Trailing slash is enabled in the config and this works for urls that don't match to static files. I previously tested removing the cache plugin but this throws a warning during deploy and doesn't fix the redirects.
|
Ahh, got it, thanks for the extra info. Sadly there doesn't seem to be a great workaround to this yet. Changing your site to not use the CDN via an environment variable ( |
All right, thanks for the help. I'll have to change my relative urls to root relative then. |
The team at Netlify have now released the new You can find the documentation and additional information here: Next.js on Netlify The Thanks! |
Steps to reproduce
If I run
yarn build && yarn export
in local the files are created asarkisto/index.html
. On Netlify it looks like they are created asarkisto.html
.A link to a reproduction repository
https://github.com/vpreponen/indyville/
Plugin version
4.0.0
More information about your build
netlify.toml
)What OS are you using?
No response
Your
netlify.toml
file`netlify.toml`
Relevant log output (or link to your logs)
Build logs
https://app.netlify.com/sites/nifty-neumann-ecf646/deploys/61b9c66dc562b20008e09ff6
The text was updated successfully, but these errors were encountered: