Skip to content

Commit

Permalink
Fix Bug 974653 - Translation Bar should use relative redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Feb 25, 2014
1 parent 95e62bb commit 3df794d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bedrock/tabzilla/templates/tabzilla/tabzilla.js
Expand Up @@ -419,7 +419,7 @@ var Tabzilla = (function (Tabzilla) {
trackLabel: userLang, trackLabel: userLang,
callback: function () { callback: function () {
if (langLink.length) { if (langLink.length) {
location.href = langLink.attr('href'); location.href = langLink.attr('href').replace(/^https?\:\/\/[^/]+/, '');
} else { } else {
langOption.attr('selected', 'selected').get(0).form.submit(); langOption.attr('selected', 'selected').get(0).form.submit();
} }
Expand Down

0 comments on commit 3df794d

Please sign in to comment.