summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-12-08 10:02:20 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-05 07:40:17 +0100
commit23f9dd3cc8ee1240a500722983bf828cc1f818d7 (patch)
treecb160dfa0e07bdb6e07e76986e314b05767a1baf
parent9d58717bde7e0fef21ab3757ac6d864bccf34a4e (diff)
downloadnextcloud-server-23f9dd3cc8ee1240a500722983bf828cc1f818d7.tar.gz
nextcloud-server-23f9dd3cc8ee1240a500722983bf828cc1f818d7.zip
Allow target="_blank" in app navigation items
Which was removed in the Vue rewrite in #33728. This breaks things like https://github.com/nextcloud/external/issues/79 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rw-r--r--core/src/components/AppMenu.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/components/AppMenu.vue b/core/src/components/AppMenu.vue
index f5963b44126..ed3a6293c57 100644
--- a/core/src/components/AppMenu.vue
+++ b/core/src/components/AppMenu.vue
@@ -31,7 +31,9 @@
:class="{ 'has-unread': app.unread > 0 }"
:aria-label="appLabel(app)"
:title="app.name"
- :aria-current="app.active ? 'page' : false">
+ :aria-current="app.active ? 'page' : false"
+ :target="app.target ? '_blank' : undefined"
+ :rel="app.target ? 'noopener noreferrer' : undefined">
<img :src="app.icon" alt="">
<div class="app-menu-entry--label">
{{ app.name }}