diff options
author | Thomas Citharel <tcit@tcit.fr> | 2022-12-08 10:02:20 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-01-05 07:40:17 +0100 |
commit | 23f9dd3cc8ee1240a500722983bf828cc1f818d7 (patch) | |
tree | cb160dfa0e07bdb6e07e76986e314b05767a1baf | |
parent | 9d58717bde7e0fef21ab3757ac6d864bccf34a4e (diff) | |
download | nextcloud-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.vue | 4 |
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 }} |