forked from Mirrors/elk
fix: tag link (#1390)
This commit is contained in:
parent
edba79f6db
commit
c28c95e36c
1 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue