luci-theme-bootstrap: open footer links in new tab
authorFengyu Wu <saldry@proton.me>
Sat, 17 Feb 2024 13:18:39 +0000 (21:18 +0800)
committerPaul Donald <newtwen@gmail.com>
Thu, 7 Mar 2024 00:33:29 +0000 (01:33 +0100)
Also set Referrer Policy

Signed-off-by: Fengyu Wu <saldry@proton.me>
(cherry picked from commit f01347d3be9c6b744e6831d98b7a6e920020a627)

themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/footer.ut

index 6031724053310f722bf9fe87d9dc751d541e63a8..a9dd0f939e116e55a1a898f0ebcdd1fbf5dadc14 100644 (file)
@@ -3,10 +3,10 @@
                <footer>
                        <span>
                                Powered by
-                               <a href="https://github.com/openwrt/luci">
+                               <a href="https://github.com/openwrt/luci" target="_blank" rel="noreferrer">
                                        {{ version.luciname }} ({{ version.luciversion }})</a>
                                /
-                               <a href="{{ entityencode(version.disturl ?? '#', true) }}">
+                               <a href="{{ entityencode(version.disturl ?? '#', true) }}" target="_blank" rel="noreferrer">
                                        {{ version.distname }} {{ version.distversion }} ({{ version.distrevision }})</a>
                                {% if (lua_active): %}
                                        / {{ _('Lua compatibility mode active') }}