8000 Router links in history mode completely broken since v2.18.0 · Issue #5927 · bootstrap-vue/bootstrap-vue · GitHub
[go: up one dir, main page]

Skip to content
Router links in history mode completely broken since v2.18.0 #5927
Closed
@essenmitsosse

Description

@essenmitsosse

Describe 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0