diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2018-05-07 22:07:15 +0800 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2018-05-07 22:28:40 +0800 |
commit | e4f77ace8b4fe9fd4c5d73e604eb1b8c6b480ed8 (patch) | |
tree | dd5e095b1f8640789dcde598338fb71fc6f82953 /applications/luci-app-commands | |
parent | b810d99503d394d4a7f210798c2b035eae57d24f (diff) |
luci-app-commands: fix link generation
Fixes openwrt/luci##824
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'applications/luci-app-commands')
-rw-r--r-- | applications/luci-app-commands/luasrc/view/commands.htm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/applications/luci-app-commands/luasrc/view/commands.htm b/applications/luci-app-commands/luasrc/view/commands.htm index 3b361558e..4285f25cb 100644 --- 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; |