From 40bb6069ec04bc0461ac407da7d03c6910c23d6d Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 22 Mar 2024 08:54:34 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20URL=E3=83=97=E3=83=AC=E3=83=93?= =?UTF-8?q?=E3=83=A5=E3=83=BC=E3=81=AEto/href=E3=81=8C=E3=81=AA=E3=81=84?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3=20Fix=20of=20http?= =?UTF-8?q?s://github.com/misskey-dev/misskey/pull/13579/files/9ae577871b1?= =?UTF-8?q?0f6231acc3451188cd69ede9443ed#diff-cfa02e203bdbd03dbf312a889f00?= =?UTF-8?q?9ca7f9ebd8376334ebd74c4961b716b22d93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkUrlPreview.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/src/components/MkUrlPreview.vue b/packages/frontend/src/components/MkUrlPreview.vue index b3dc492616..6954f1f6ff 100644 --- a/packages/frontend/src/components/MkUrlPreview.vue +++ b/packages/frontend/src/components/MkUrlPreview.vue @@ -110,6 +110,7 @@ const MOBILE_THRESHOLD = 500; const isMobile = ref(deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD); const self = props.url.startsWith(local); +const attr = self ? 'to' : 'href'; const target = self ? null : '_blank'; const fetching = ref(true); const title = ref(null);