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 <itsascambutmailmeanyway@gmail.com>
Sat, 2 Mar 2024 16:57:01 +0000 (17:57 +0100)
Also set Referrer Policy

Signed-off-by: Fengyu Wu <saldry@proton.me>
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') }}