10000 to is not resolved as router-link · Issue #5820 · bootstrap-vue/bootstrap-vue · GitHub
[go: up one dir, main page]

Skip to content
to is not resolved as router-link #5820
Closed
@jd-solanki

Description

@jd-solanki

Describe the bug

Here's simple example:

<b-link :to="{ name: item.route }" href="http://google.com">Link</b-link>

<router-link :to="{ name: item.route }" href="http://google.com">Link</router-link>

In the above two lines of code if item.route is undefined then b-link still resolve the route and give the unexpected route link. Whereas if you use router-link then it somehow resolves correctly and give URL of google.com.

Steps to reproduce the bug

  1. Just use above two lines
  2. define item as empty object so item.route return undefined

Expected behavior

Isn't b-link should give link for google if item.route is undefined just like router-link

Versions

Libraries:

  • BootstrapVue: 2.17.3
  • Bootstrap: 4.5.2
  • Vue: 2.6.12

Environment:

  • Device: PC
  • OS: Linux Mint
  • Browser: Chrome
  • Version: 85

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