Skip to content

Commit 0b335a8

Browse files
cannibbleTheAlexLichter
authored andcommitted
removing data.attrs.to because the to attribute is rendered on the frontend
1 parent bffdda5 commit 0b335a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const vueLinkFactory = (slashes, isNuxt) => ({
4747
const linkComponent = isNuxt ? 'NuxtLink' : 'RouterLink'
4848

4949
const defaultSlots = slots().default
50-
50+
delete data.attrs.to // removing because the to attribute is rendered on the frontend!
5151
return isLinkedToExternal
5252
? h('a', {
5353
...data,

0 commit comments

Comments
 (0)