Skip to content
Browse files

Merge pull request #1717 from kyoshino/bug-974653-transbar-relative-r…

…edirect

Fix Bug 974653 - Translation Bar should use relative redirect
  • Loading branch information...
2 parents 66c50e9 + 3df794d commit d7bcb8dec2438d4b277c052d43e9d7a5bfd9aa65 @alexgibson alexgibson committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 bedrock/tabzilla/templates/tabzilla/tabzilla.js
View
2 bedrock/tabzilla/templates/tabzilla/tabzilla.js
@@ -419,7 +419,7 @@ var Tabzilla = (function (Tabzilla) {
trackLabel: userLang,
callback: function () {
if (langLink.length) {
- location.href = langLink.attr('href');
+ location.href = langLink.attr('href').replace(/^https?\:\/\/[^/]+/, '');
} else {
langOption.attr('selected', 'selected').get(0).form.submit();
}

0 comments on commit d7bcb8d

Please sign in to comment.
Something went wrong with that request. Please try again.