Doesn't work the redirection to front page with language active
This commit is contained in:
parent
efce8ae3ea
commit
765af99d20
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
$jq(function() {
|
$jq(function() {
|
||||||
// Destination, relative path, don't start with a slash.
|
// Destination, relative path. Don't start with a slash.
|
||||||
var path = '';
|
var path = '';
|
||||||
|
|
||||||
var langPath = '';
|
var langPath = '';
|
||||||
|
@ -18,6 +18,7 @@ $jq(function() {
|
||||||
} else {
|
} else {
|
||||||
path = basePath + langPath + path;
|
path = basePath + langPath + path;
|
||||||
}
|
}
|
||||||
|
path = path == '/' ? path : path.replace(/\/$/, '');
|
||||||
|
|
||||||
var prev = Drupal.t("« Prev");
|
var prev = Drupal.t("« Prev");
|
||||||
var next = Drupal.t("Next »");
|
var next = Drupal.t("Next »");
|
||||||
|
|
Reference in a new issue