Doesn't work the redirection to front page with language active

This commit is contained in:
Manuel Cillero 2017-09-11 00:57:23 +02:00
parent efce8ae3ea
commit 765af99d20

View file

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