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 »");