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=f094e186d43346e61719bcdeba021f6b5ed0aa53;hb=72fe5dd70335a6bbbe5db8ecc1885a68d368eb3a;hpb=1b42d7a02df97c77ff9653de5e53b115610b3121 diff --git a/applications/luci-app-commands/luasrc/view/commands.htm b/applications/luci-app-commands/luasrc/view/commands.htm index f094e186d..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; @@ -136,7 +134,7 @@ uci:foreach("luci", "command", function(s) commands[#commands+1] = s end) %> -
"> +

<%:Custom Commands%>