'Dynamic Routing : Adding nested routes' not working when URL typed on address bar #1776
Replies: 1 comment
-
Closing and moving it to the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I add nested routes dynamically and then try to access them by typing the URL in the address bar, it does not work. However, the routes work fine when accessed through RouterLink in the code. This issue only occurs with dynamically added nested routes, and there are no problems with static routes.
If there are no problems with my code, then it is probably a library issue. Adding nested routes works fine with Vue2 + Vue Router 3, but there seems to be an issue with Vue3 + Vue Router 4.
static router
dynamic rurter
Full code with demo :
https://codesandbox.io/p/sandbox/wonderful-violet-55q85o
How to reproduce the issue :
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions