Allow base URL with path
Ignore and remove trailing slashes. Fixes #134. Change-Id: Iedf266e9a93e6939f7f66707fee59a2b56226216
This commit is contained in:
@@ -18,6 +18,7 @@ const authProvider = {
|
||||
// use the base_url from login instead of the well_known entry from the
|
||||
// server, since the admin might want to access the admin API via some
|
||||
// private address
|
||||
base_url = base_url.replace(/\/+$/g, "");
|
||||
localStorage.setItem("base_url", base_url);
|
||||
|
||||
const decoded_base_url = window.decodeURIComponent(base_url);
|
||||
|
||||
Reference in New Issue
Block a user