From 765af99d207fb7999b709b97b00c6c0275b9bee1 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Mon, 11 Sep 2017 00:57:23 +0200 Subject: [PATCH] Doesn't work the redirection to front page with language active --- themes/zuitedesk/js/tourmenu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/zuitedesk/js/tourmenu.js b/themes/zuitedesk/js/tourmenu.js index 2b0e3be..1e6f4d4 100644 --- a/themes/zuitedesk/js/tourmenu.js +++ b/themes/zuitedesk/js/tourmenu.js @@ -1,5 +1,5 @@ $jq(function() { - // Destination, relative path, don't start with a slash. + // Destination, relative path. Don't start with a slash. var path = ''; var langPath = ''; @@ -18,6 +18,7 @@ $jq(function() { } else { path = basePath + langPath + path; } + path = path == '/' ? path : path.replace(/\/$/, ''); var prev = Drupal.t("« Prev"); var next = Drupal.t("Next »");