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

Underscores are not considered when building URLs #2543

Closed
samirph opened this issue Jan 9, 2018 · 3 comments
Closed

Underscores are not considered when building URLs #2543

samirph opened this issue Jan 9, 2018 · 3 comments
Labels

Comments

@samirph
Copy link

samirph commented Jan 9, 2018

When a page like sign_in.vue is created, the url generated is /sign instead of /sign_in.
Why not making it possible?

Why I want that behavior:
I'm remaking a website using Nuxt and I want to keep the older URLs for SEO purposes.

This question is available on Nuxt.js community (#c2212)
@NicoPennec
Copy link

alternative solution:

  1. rename your page with dash sign-in.vue
  2. redirect /sign_in to /sign-in by HTTP 301 (SEO compliant) with a nuxt servermiddleware

more details on this issue : #1592

@clarkdo clarkdo closed this as completed Jan 10, 2018
@MauricioHernanCabrera
Copy link

How can I do with dynamic routes?

@lock
Copy link

lock bot commented Nov 1, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 1, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants