diff --git a/radicale/web/fn.js b/radicale/web/fn.js index 03334949..501352a2 100644 --- a/radicale/web/fn.js +++ b/radicale/web/fn.js @@ -29,7 +29,7 @@ var SERVER = (location.protocol + '//' + location.hostname + * @const * @type {string} */ -var ROOT_PATH = location.pathname.replace(new RegExp("/+[^/]+/*(/index\.html?)?$"), "") + '/'; +var ROOT_PATH = location.pathname.replace(new RegExp("/+[^/]+/*(/index\\.html?)?$"), "") + '/'; /** * time between updates of collections (milliseconds)