From c28c95e36ca1dba0d2c58ba6eea75ea08f78b1c1 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 22 Jan 2023 20:21:34 +0100 Subject: [PATCH] fix: tag link (#1390) --- components/tag/TagCard.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/tag/TagCard.vue b/components/tag/TagCard.vue index 7ba468ae..60a70eb2 100644 --- a/components/tag/TagCard.vue +++ b/components/tag/TagCard.vue @@ -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}` +})