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>
Fri, 13 Mar 2020 22:57:19 +0000 (23:57 +0100)
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>
modules/luci-base/luasrc/view/header.htm
modules/luci-base/root/etc/config/luci

index fbede8ff57407f487ca7147551f1a2e3e86b685e..4d30729809e1b2c24fecc6627ae71c2baef50bce 100644 (file)
@@ -25,7 +25,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/"