[FS#184] luci-app-commands public links wrong
LEDE Bugs
lede-bugs at lists.infradead.org
Thu Sep 22 00:37:31 PDT 2016
A new Flyspray task has been opened. Details are below.
User who did this - Warren Linton (muddyfeet)
Attached to Project - LEDE Project
Summary - luci-app-commands public links wrong
Task Type - Bug Report
Category - Luci
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - Using the luci-app-command part of luci works well for the most part. However, there is an error in the links for public commands.
When hitting the "Link" button on the dashboard page, it returns a link in the form below:
"Access command with http://192.168.1.1/cgi-bin/luci/admin/system/commandscommand/cfg089944"
It should read:
"Access command with http://192.168.1.1/cgi-bin/luci/command/cfg089944"
The error appears to be in /usr/lib/lua/luci/view/commands.htm at line 113
var link = location.protocol + '//' + location.hostname +
(location.port ? ':' + location.port : '') +
location.pathname.split(';')[0] + 'command/' +
id + (args ? '/' + args : '');
It perhaps should read (and please pardon my lack of programming ability...)
var link = location.protocol + '//' + location.hostname +
(location.port ? ':' + location.port : '') +
location.pathname.split('luci/')[0] + 'luci/command/' +
id + (args ? '/' + args : '');
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=184
More information about the lede-bugs
mailing list