From 67d739cf7186bdac712e350cafa6b7a39511d8e1 Mon Sep 17 00:00:00 2001 From: Marie Date: Fri, 4 Oct 2024 02:34:01 +0200 Subject: [PATCH] upd: add script and check to MkUrl --- packages/frontend/src/components/global/MkUrl.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend/src/components/global/MkUrl.vue b/packages/frontend/src/components/global/MkUrl.vue index 15595ba515..d3bddb017f 100644 --- a/packages/frontend/src/components/global/MkUrl.vue +++ b/packages/frontend/src/components/global/MkUrl.vue @@ -8,6 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only :is="self ? 'MkA' : 'a'" ref="el" :class="$style.root" class="_link" :[attr]="self ? props.url.substring(local.length) : props.url" :rel="rel ?? 'nofollow noopener'" :target="target" :behavior="props.navigationBehavior" @contextmenu.stop="() => {}" + @click.prevent="self ? true : warningExternalWebsite(url)" @click.stop >