vuejs / vue-router Public
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
warn about root paths without a leading slash #2550
Closed
MatiasOlivera opened this issue
Dec 24, 2018
· 3 comments
· Fixed by #2591, mariazevedo88/hash-generator-js#5, noprotocol/Bubblicious#3, drakeg/udemy_django_vue#14 or tghelere/valorize-vidas#4
Closed
warn about root paths without a leading slash #2550
MatiasOlivera opened this issue
Dec 24, 2018
· 3 comments
· Fixed by #2591, mariazevedo88/hash-generator-js#5, noprotocol/Bubblicious#3, drakeg/udemy_django_vue#14 or tghelere/valorize-vidas#4
Projects
Comments
|
Can I work on this? |
Sayegh7
added a commit
to Sayegh7/vue-router
that referenced
this issue
Jan 22, 2019
Sayegh7
added a commit
to Sayegh7/vue-router
that referenced
this issue
Jan 22, 2019
|
Would be nice to see a note in the docs about how slashes should be used in routes.. or did I miss one? |
|
Any update on this? I think it's should be mentioned in docs if leading slash (in path) is mandatory. |
posva
added a commit
that referenced
this issue
Aug 30, 2019
* fix(create-matcher): warn about root paths without a leading slash close #2550 * fix(create-route-map): warn about root paths without a leading slash close #2550 * fix(create-route-map): only warn about first route without slash * fix(create-route-map): handle case of '' route * fix(create-route-map): remove leftover console.log * fix(create-route-map): warn about root paths only * fix(create-route-map): show prettier warning message
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Version
2.5.3
Reproduction link
https://codesandbox.io/s/6zvmx5lorr
Example
Steps to reproduce
What is expected?
I spent some time trying to understand what the problem was, so it would be nice to see a warning message telling that the route is invalid because doesn't have the initial slash.
What is actually happening?
The router goes to a route that doesn't exist.
The text was updated successfully, but these errors were encountered: