From: Steven Barth Date: Wed, 25 Jun 2008 14:58:18 +0000 (+0000) Subject: * libs/web: Fixed reference to dispatcher in luci.dispatcher.build_url X-Git-Tag: 0.8.0~776 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=b85d292bcd13f7527d6a2c1d204ebf78bc417e06 * libs/web: Fixed reference to dispatcher in luci.dispatcher.build_url --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 60178741e..5bf3fc1d6 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -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