Permalink
Browse files

Fix Bug 974653 - Translation Bar should use relative redirect

  • Loading branch information...
1 parent 95e62bb commit 3df794d43566fec04ee0b908cfbe958e6348e21c @kyoshino kyoshino committed Feb 25, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 3df794d

Please sign in to comment.