luci-base: ensure that ubus path uses trailing slash
authorJo-Philipp Wich <jo@mein.io>
Fri, 13 Mar 2020 22:57:19 +0000 (23:57 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
Without the trailing slash, probing endpoint availability will fail.

Fixes: 529bde440 ("luci-base: make rpc webserver path configurable")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 38289bc97512e758e5a20f348dc13d5018f98188)

modules/luci-base/luasrc/view/header.htm
modules/luci-base/root/etc/config/luci

index f0f69f2003a9523588fda505027ad6e4976a31dd..be18d3dec258a99b4e46d2e0b68e64e9565414d0 100644 (file)
@@ -26,7 +26,7 @@
                requestpath    = luci.dispatcher.context.requestpath,
                dispatchpath   = luci.dispatcher.context.path,
                pollinterval   = luci.config.main.pollinterval or 5,
-               ubuspath       = luci.config.main.ubuspath or '/ubus',
+               ubuspath       = luci.config.main.ubuspath or '/ubus/',
                sessionid      = luci.dispatcher.context.authsession,
                apply_rollback = math.max(applyconf and applyconf.rollback or 30, 30),
                apply_holdoff  = math.max(applyconf and applyconf.holdoff or 4, 1),
index daa4a5b7c931022942302352b9d4bc3a4c4abd75..46947ae4c1873d13cf737695e94633b42c3c241b 100644 (file)
@@ -2,7 +2,7 @@ config core main
        option lang auto
        option mediaurlbase /luci-static/bootstrap
        option resourcebase /luci-static/resources
-       option ubuspath /ubus
+       option ubuspath /ubus/
        
 config extern flash_keep
        option uci              "/etc/config/"