diff --git a/server/app.js b/server/app.js index a561501..5b0f82a 100755 --- a/server/app.js +++ b/server/app.js @@ -23,7 +23,9 @@ const picturesPath = config.get("picturesPath"), let basePath = config.get("basePath"); basePath = "/" + basePath.replace(/^\/+/, "").replace(/\/+$/, "") + "/"; - +if (basePath == "//") { + basePath = "/"; +} console.log("Loading pictures out of: " + picturesPath); console.log("Hosting server from: " + basePath);