Skip to content
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

Option to add trailing slash to routes, especially static ones #78

manniL opened this issue Aug 12, 2019 — with CMTY · 2 comments


Copy link

commented Aug 12, 2019 — with CMTY

What problem does this feature solve?

We can already add a trailing slash to our own defined routes, but there is no way (AFAIK) yet to add it to generated/static routes.

/about -> /about/ (while there is a pages/about.vue)

This feature request is available on Nuxt community (#c60)

@manniL manniL added the cmty:feature-request label Aug 12, 2019 — with CMTY

This comment has been minimized.

Copy link

commented Aug 14, 2019 — with CMTY

(duplicate #34)

You can use the filter option.
see the 2nd example:

But if you apply the trailing slash, you will have duplicate contents between /about and /about/ paths. So a 301 redirection will be mandatory (to solve that issue =>

Currently the root cause comes from an issue in the framework Nuxt 2.x itself 🤷
Please, read my comment here : #33 (comment)
and the @pi0 comment here: nuxt/nuxt.js#3448 (review)


This comment has been minimized.

Copy link
Member Author

commented Aug 15, 2019

Thanks! ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.