-
-
Notifications
You must be signed in to change notification settings - Fork 954
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
Links doesn't work properly with history: createWebHistory #272
Comments
I checked AppSidebarNav.js and set Solved problems: Created problems: |
In AppSidebarNav.js code is look like this:
You can customize the child item using render function h. Here is my code that does the trick:
I have removed href and onClick props from the original code. And shifted them into RouterLink render function and href converted to "to" attribute for RouterLink. For css added the class nav-link. That does the trick. |
@zeeforum Yes it helped, thank you! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions |
Links doesn't work properly with history: createWebHistory |
When I switch router mode from hash to web history and try to access any page from sidebar or breadcrumb, app downloads all of the files again and again like opened from scratch. It works like old non single page applications.
But when I put a router link myself like:
<router-link to="/dashboard">hello</router-link>
It works normally. Loads only page related files.
The text was updated successfully, but these errors were encountered: