Skip to content

Commit

Permalink
fix: handle external and public-folder links in navlink component
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Apr 9, 2024
1 parent df417ff commit 8f1032c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/nav-link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const localePath = useLocalePath();
</script>

<template>
<NuxtLink :href="localePath(props.href)">
<NuxtLink :external="props.external" :href="props.external ? props.href : localePath(props.href)">
<slot />
</NuxtLink>
</template>

0 comments on commit 8f1032c

Please sign in to comment.