X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-commands%2Fluasrc%2Fview%2Fcommands.htm;h=4285f25cb20dd17c1d52139c6639bee36dc7d5a0;hp=3b361558eee5834d6a68acc754a334bb2284a90e;hb=e4f77ace8b4fe9fd4c5d73e604eb1b8c6b480ed8;hpb=b810d99503d394d4a7f210798c2b035eae57d24f;ds=sidebyside 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;