luci-app-commands: fix link generation
Fixes openwrt/luci##824 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
b810d99503
commit
e4f77ace8b
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue