* libs/web: Fixed reference to dispatcher in luci.dispatcher.build_url
This commit is contained in:
parent
1a9fe9cd77
commit
b85d292bcd
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ local fi
|
||||||
|
|
||||||
-- Builds a URL
|
-- Builds a URL
|
||||||
function build_url(...)
|
function build_url(...)
|
||||||
return luci.http.dispatcher() .. "/" .. table.concat(arg, "/")
|
return luci.http.getenv("SCRIPT_NAME") .. "/" .. table.concat(arg, "/")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Prints an error message or renders the "error401" template if available
|
-- Prints an error message or renders the "error401" template if available
|
||||||
|
|
Loading…
Reference in a new issue