]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow target="_blank" in app navigation items
authorThomas Citharel <tcit@tcit.fr>
Thu, 8 Dec 2022 09:02:20 +0000 (10:02 +0100)
committerJoas Schilling <coding@schilljs.com>
Thu, 5 Jan 2023 06:13:50 +0000 (07:13 +0100)
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>
core/src/components/AppMenu.vue

index f5963b4412623d00783c3264564668cae6fab8d1..ed3a6293c578a6297306099e5f86c09200d932ca 100644 (file)
@@ -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 }}