* libs/web: Fixed reference to dispatcher in luci.dispatcher.build_url

This commit is contained in:
Steven Barth 2008-06-25 14:58:18 +00:00
parent 1a9fe9cd77
commit b85d292bcd

View file

@ -40,7 +40,7 @@ local fi
-- Builds a URL
function build_url(...)
return luci.http.dispatcher() .. "/" .. table.concat(arg, "/")
return luci.http.getenv("SCRIPT_NAME") .. "/" .. table.concat(arg, "/")
end
-- Prints an error message or renders the "error401" template if available