projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: improve handling of page redirections in uci change views
[project/luci.git]
/
themes
/
luci-theme-openwrt
/
luasrc
/
view
/
themes
/
openwrt.org
/
header.htm
diff --git
a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
index
ae348f3
..
d6db8e8
100644
(file)
--- a/
themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
+++ b/
themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
@@
-104,7
+104,7
@@
if ucic > 0 then
write('<a class="warning" href="%s?redir=%s">%s: %d</a>' %{
url(category, 'uci/changes'),
if ucic > 0 then
write('<a class="warning" href="%s?redir=%s">%s: %d</a>' %{
url(category, 'uci/changes'),
- http.urlencode(http.formvalue('redir') or
REQUEST_URI
),
+ http.urlencode(http.formvalue('redir') or
table.concat(disp.context.request, "/")
),
translate('Unsaved Changes'),
ucic
})
translate('Unsaved Changes'),
ucic
})