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-bootstrap
/
luasrc
/
view
/
themes
/
bootstrap
/
header.htm
diff --git
a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
index
78b98e0
..
0441c95
100644
(file)
--- a/
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
+++ b/
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
@@
-147,7
+147,7
@@
if ucichanges > 0 then
write('<a class="label notice" href="%s?redir=%s">%s: %d</a>' %{
url(category, 'uci/changes'),
if ucichanges > 0 then
write('<a class="label notice" 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'),
ucichanges
})
translate('Unsaved Changes'),
ucichanges
})