From 3ecd83104a99fcf6c686e7977de1eeb5d840d342 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Fri, 7 Sep 2018 12:25:03 -0700 Subject: [PATCH] Support / as basePath Signed-off-by: James Ketrenos --- server/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);