fix: tag link (#1390)

zio/stable
Shinigami 2023-01-22 20:21:34 +01:00 committed by GitHub
parent edba79f6db
commit c28c95e36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ const {
tag: mastodon.v1.Tag 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> </script>
<template> <template>