X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=core%2Fsrc%2Fdispatcher.lua;fp=core%2Fsrc%2Fdispatcher.lua;h=0a66ccd3adc23ffb08e7189bddb6883b832bee63;hp=c60e5dcd175b42e5d2add0584ddbfdf77e8d3bda;hb=6eae1a0103a3d12dee4bc8753efee88af203dff3;hpb=357ba22175225ca40cfcffd1f61cc4621ff13dbe diff --git a/core/src/dispatcher.lua b/core/src/dispatcher.lua index c60e5dcd17..0a66ccd3ad 100644 --- a/core/src/dispatcher.lua +++ b/core/src/dispatcher.lua @@ -104,7 +104,7 @@ function build_url(category, module, action) module = module or "index" action = action or "index" - local pattern = ffluci.http.env.SCRIPT_NAME .. "/%s/%s/%s" + local pattern = ffluci.http.dispatcher() .. "/%s/%s/%s" return pattern:format(category, module, action) end