From b85d292bcd13f7527d6a2c1d204ebf78bc417e06 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 25 Jun 2008 14:58:18 +0000 Subject: [PATCH] * libs/web: Fixed reference to dispatcher in luci.dispatcher.build_url --- libs/web/luasrc/dispatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0