themes/freifunk-generic: properly pass redirect url to uci changes menu
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 25 Jun 2011 21:54:50 +0000 (21:54 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 25 Jun 2011 21:54:50 +0000 (21:54 +0000)
themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm

index 11c7de5..412b7e0 100644 (file)
@@ -208,7 +208,7 @@ if tree.nodes[category] and tree.nodes[category].ucidata then
 
 <div id="savemenu">
        <% if ucic > 0 then %>
-               <a class="warning" href="<%=controller%>/<%=category%>/uci/changes/?redir=<%=luci.http.urlencode(tree.nodes[category].nodes["uci"].query)%>"><%:Unsaved Changes%>: <%=ucic%></a>
+               <a class="warning" href="<%=controller%>/<%=category%>/uci/changes/?redir=<%=luci.http.urlencode(luci.http.formvalue("redir") or REQUEST_URI)%>"><%:Unsaved Changes%>: <%=ucic%></a>
        <% end -%>
 </div><% end %>