Router links in history mode completely broken since v2.18.0
See original GitHub issueDescribe the bug
Since upgrading to v2.18.0 router links in history mode seem to be completely broken, since they don’t generate the correct HTML anymore — the href-attribute is just “#” no matter what the router link target is. Clicking the links still works though.
Steps to reproduce the bug
- activate history mode for router
<p><router-link :to="{ name: 'Home' }">Router Link</router-link></p>
<p><b-link :to="{ name: 'Home' }">Bootstrap Link</b-link></p>
The produced HTML:
<p><a href="/" aria-current="page" class="router-link-exact-active router-link-active">Router Link</a></p>
<p><a href="#" aria-current="page" class="router-link-exact-active router-link-active" target="_self">Bootstrap Link</a></p>
Expected behavior
The router link should also produce href="/"
(and did so in version prior to v2.18.0*
Versions
Libraries:
- BootstrapVue: 2.18.0
- Bootstrap: 4.5.3
- Vue: 2.6.11
- Vue Router: 3.4.7 (also tested with 3.3.0, same result)
Environment:
- Device: Mac
- OS: macOS Catalina
- Browser: Chrome
- Version: 86
Demo link
Reproduction link — Fresh Vue CLI installation
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Vue Router return 404 when revisit to the url - Stack Overflow
Any history mode returns: >> Not Found The requested URL was not found on the server. If you entered the URL manually please...
Read more >Different History modes - Vue Router
The history option when creating the router instance allows us to choose among different history modes. Hash Mode #. The hash history mode...
Read more >Troubleshoot EIGRP Common Issues - Cisco
This document describes how to troubleshoot the most common Enhanced Interior Gateway Routing Protocol (EIGRP) issues.
Read more >Fix list for IBM WebSphere Application Server V8.5
IBM WebSphere Application Server provides periodic fixes for the base and Network Deployment editions of release V8.5. The following is a complete listing ......
Read more >Troubleshooting BGP Sessions | Junos OS - Juniper Networks
Purpose. Table 1 provides links and commands for verifying whether the Border Gateway Protocol (BGP) is configured correctly on a Juniper Networks router...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, the fixes solved the problem, thank you!
Same. After 2.18.0 all
<b-link :to={name: RouteName}>
generate<a href="#">
<router-link>
works fine.