fix: tag link (#1390)

This commit is contained in:
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

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>