lucide-icons / lucide

Beautiful & consistent icon toolkit made by the community. Open-source project and a fork of Feather Icons.
https://lucide.dev
ISC License
8.94k stars 380 forks source link

fix: Prevent internal router from handling external links #2107

Closed robvanbakel closed 3 weeks ago

robvanbakel commented 3 weeks ago

closes #2086

What is the purpose of this pull request?

Description

Links in badges that open externally would also be picked up by the Vue Router, resulting in a 404-page.

Detection for external links is added in the Badge component, simultaneously adding the appropriate anchor tag attributes, as well as preventing the Vue Router from navigating.

Before Submitting