From abee767b390e6b1b58242387cc86c0299de032a3 Mon Sep 17 00:00:00 2001 From: Galen Reich <54807169+GalenReich@users.noreply.github.com> Date: Mon, 2 Sep 2024 12:24:53 +0200 Subject: [PATCH] Fix router location address --- src/core/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/router.js b/src/core/router.js index c376af1..1da20e8 100644 --- a/src/core/router.js +++ b/src/core/router.js @@ -9,7 +9,7 @@ class Router { this.db = db; this.allowedParams = module.config().allowedParams; this.defaultCoords = module.config().defaultCoords; - this.locationAddress = window.location.protocol + "//" + window.location.pathname; + this.locationAddress = window.location.origin == "null" ? "" : window.location.origin + window.location.pathname; } /**