diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-25 21:54:50 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-25 21:54:50 +0000 |
commit | 54e834f00383164d714549b626a361675b49ecbf (patch) | |
tree | 0f2d5efdf66699535dad8a8156d88dd0d0cbaa62 | |
parent | d7120e7559fdfdacd8c6862704d7d1281d5d2261 (diff) |
themes/freifunk-generic: properly pass redirect url to uci changes menu
-rw-r--r-- | themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm index 11c7de50e..412b7e0cf 100644 --- a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm +++ b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm @@ -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 %> |