-
-
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
router path /index throw 404 not expected to / #1389
Comments
Hi. This an expected behavior (At least currently).Adding an alias for |
thanks for your quick response @pi0 ,so do you have any suggestion for this case ? I really don't want to create a same name router folder for each router path. We just want to the it could be like as following:
thanks a lot, we really like the nuxtjs project. |
As @pi0 explained, this is not ideal for many reasons, so I would recommend re-evaluating your design to avoid having duplicate routes to the same resource, but here's a solution that should work. You could use the dynamic routing to make this work. You'd create a file called
|
thanks @bayssmekanique ,The problem is that When i use the root path name
|
Sorry, I guess I completely miss-understand what you are asking. To route to the index file, you would use |
thanks @bayssmekanique , Your reminder let me to go throuth the vue-router document ,and I found that i misunderstand the
It's totally my fault. thanks for your help @bayssmekanique , @pi0 |
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. |
Test Data:
Steps:
Expected result:
/
Actual result:
I don't want to create a new folder called
index
at the root pages ,any help for this ?thanks .
The text was updated successfully, but these errors were encountered: