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;
}
};