git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
b810d99
)
luci-app-commands: fix link generation
author
Yousong Zhou
<redacted>
Mon, 7 May 2018 14:07:15 +0000
(22:07 +0800)
committer
Yousong Zhou
<redacted>
Mon, 7 May 2018 14:28:40 +0000
(22:28 +0800)
Fixes openwrt/luci##824
Signed-off-by: Yousong Zhou <redacted>
applications/luci-app-commands/luasrc/view/commands.htm
patch
|
blob
|
history
diff --git
a/applications/luci-app-commands/luasrc/view/commands.htm
b/applications/luci-app-commands/luasrc/view/commands.htm
index 3b361558eee5834d6a68acc754a334bb2284a90e..4285f25cb20dd17c1d52139c6639bee36dc7d5a0 100644
(file)
--- a/
applications/luci-app-commands/luasrc/view/commands.htm
+++ b/
applications/luci-app-commands/luasrc/view/commands.htm
@@
-108,9
+108,7
@@
if (legend && output)
{
- var prefix = location.protocol + '//' + location.hostname +
- (location.port ? ':' + location.port : '') +
- location.pathname.split(';')[0] + 'command/';
+ var prefix = location.protocol + '//' + location.host + '<%=url('command')%>/';
var suffix = (args ? '/' + args : '');
var link = prefix + id + suffix;
git clone https://git.99rst.org/PROJECT