A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/issues/5820 below:

to is not resolved as router-link · Issue #5820 · bootstrap-vue/bootstrap-vue · GitHub

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:

Environment:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4