From 45085c2d0b732e00df6c956ed0c17ab89064270b Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sat, 24 Aug 2019 20:00:20 +0300 Subject: [PATCH] Fixed trailing slash --- web/tpl/page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/tpl/page.html b/web/tpl/page.html index 027f89a..542b1e9 100644 --- a/web/tpl/page.html +++ b/web/tpl/page.html @@ -90,7 +90,7 @@ localStorage.setItem("glossa.info.lexis.language", lang); - window.location = path.join("/") + "/" + window.location.search; + window.location = path.join("/").replace(/\/?$/, '/') + window.location.search; } };