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:13:50 +0100 |
commit | 56c5273206316125f0311566f895ece85c792930 (patch) | |
tree | 21f8efbf1d9be82b6275f3569bbefdd3e23315f8 /core | |
parent | 4670c5b38fe43edf3d4be090e693dd3c22a6aebb (diff) | |
download | nextcloud-server-56c5273206316125f0311566f895ece85c792930.tar.gz nextcloud-server-56c5273206316125f0311566f895ece85c792930.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>
Diffstat (limited to 'core')
-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 }} |