Skip to content

Commit

Permalink
fix: tag link (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 22, 2023
1 parent edba79f commit c28c95e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/tag/TagCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ const {
tag: mastodon.v1.Tag
}>()
const to = $computed(() => new URL(tag.url).pathname)
const to = $computed(() => {
const { hostname, pathname } = new URL(tag.url)
return `/${hostname}${pathname}`
})
</script>

<template>
Expand Down

0 comments on commit c28c95e

Please sign in to comment.