Skip to content

Commit

Permalink
chore(nav-link): add comment to same page link prop
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Jan 9, 2023
1 parent 913932e commit 429930a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/nav-link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const isExternalLink = computed(() => {
})
const isSamePageLink = computed(() => {
// add slash before and after hostname to check whether full domain is include in href prop
return isRelativeLink.value || props.href.includes(`/${windowHostname.value}/`)
})
Expand Down

0 comments on commit 429930a

Please sign in to comment.