* Generalized dispatcher handling
[project/luci.git] / core / src / dispatcher.lua
index c60e5dcd175b42e5d2add0584ddbfdf77e8d3bda..0a66ccd3adc23ffb08e7189bddb6883b832bee63 100644 (file)
@@ -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