summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-16 15:33:25 +0100
committerGitHub <noreply@github.com>2020-01-16 15:33:25 +0100
commitf545b29aaf6c63a74321a1e5e4655e71330b33b3 (patch)
tree3a30dd3e7486ae34387a55aa8d6ceffcc656ea2c /modules/luci-base/htdocs/luci-static
parent267085cf2d498c34b92a6e8edae627b1705f88a2 (diff)
parent529bde44081d0bc07a064e9dfb1f0b3f35e61061 (diff)
Merge pull request #3517 from Ansuel/ubus_short
luci-base: make rpc webserver path configurable
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/luci.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js
index 808ab0c5cb..69e1929945 100644
--- a/modules/luci-base/htdocs/luci-static/resources/luci.js
+++ b/modules/luci-base/htdocs/luci-static/resources/luci.js
@@ -1508,8 +1508,8 @@
if (rpcBaseURL == null) {
var rpcFallbackURL = this.url('admin/ubus');
- rpcBaseURL = Request.get('/ubus/').then(function(res) {
- return (rpcBaseURL = (res.status == 400) ? '/ubus/' : rpcFallbackURL);
+ rpcBaseURL = Request.get(this.env.ubuspath).then(function(res) {
+ return (rpcBaseURL = (res.status == 400) ? L.env.ubuspath : rpcFallbackURL);
}, function() {
return (rpcBaseURL = rpcFallbackURL);
}).then(function(url) {