From 49a2cb5ad11ccc0225fd3fa1de4b85a0618bbb99 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 7 Oct 2015 13:03:42 +0200 Subject: [PATCH 1/1] luci-base: expose luci.dispatcher.build_url() as url() in templates Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/dispatcher.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua index 28dfd18bb..5d9d1b0b1 100644 --- a/modules/luci-base/luasrc/dispatcher.lua +++ b/modules/luci-base/luasrc/dispatcher.lua @@ -286,6 +286,7 @@ function dispatch(request) ifattr = function(...) return _ifattr(...) end; attr = function(...) return _ifattr(true, ...) end; token = ctx.urltoken.stok; + url = build_url; }, {__index=function(table, key) if key == "controller" then return build_url() -- 2.11.0