luci-mod-admin-full: fix flashops url generation for config tab
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 15 May 2018 13:02:24 +0000 (15:02 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 3 Jul 2018 15:45:35 +0000 (17:45 +0200)
If a firmware image is not valid then url generation for the config tab
is wrong. To fix this use the luci.dispatcher.build_url function.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-mod-admin-full/luasrc/view/admin_system/flashops.htm

index f90a6f54245084155f7ec6caeda16d9b395e1ebc..dfdcb7f70c1a95f437fc8316746eb2267a2eeb43 100644 (file)
@@ -10,7 +10,7 @@
 
 <ul class="cbi-tabmenu">
        <li class="cbi-tab"><a href="#"><%:Actions%></a></li>
-       <li class="cbi-tab-disabled"><a href="<%=REQUEST_URI%>/backupfiles"><%:Configuration%></a></li>
+       <li class="cbi-tab-disabled"><a href="<%=url('admin/system/flashops/backupfiles')%>"><%:Configuration%></a></li>
 </ul>
 
 <div class="cbi-section">