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