From af15d08bd69615949a977397e4c7a1de9548678f Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 2 May 2023 14:45:09 -0700 Subject: [PATCH] fix: correctly display links to self instance URL Closes #9270 Co-authored-by: GitHub --- packages/client/src/components/global/MkUrl.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/global/MkUrl.vue b/packages/client/src/components/global/MkUrl.vue index 787119104..5f2a81ee6 100644 --- a/packages/client/src/components/global/MkUrl.vue +++ b/packages/client/src/components/global/MkUrl.vue @@ -3,7 +3,7 @@ :is="self ? 'MkA' : 'a'" ref="el" class="ieqqeuvs _link" - :[attr]="self ? url.substr(local.length) : url" + :[attr]="self ? props.url.substring(local.length) : props.url" :rel="rel" :target="target" @contextmenu.stop="() => {}" @@ -18,7 +18,7 @@ {{ hostname }} {{ - self ? pathname.substr(1) : pathname + self ? pathname.substring(1) : pathname }} {{ query }} {{ hash }}