Skip to content

Commit

Permalink
BUG Reapply fix for cms crashing due to History.js blindly appending …
Browse files Browse the repository at this point in the history
…slashes to end of url
  • Loading branch information
Damian Mooyman committed Aug 15, 2014
1 parent 66bacc6 commit 79c7276
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/javascript/LeftAndMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ jQuery.noConflict();
// Artificial HTTP referer, IE doesn't submit them via ajax.
// Also rewrites anchors to their page counterparts, which is important
// as automatic browser ajax response redirects seem to discard the hash/fragment.
formData.push({name: 'BackURL', value:History.getPageUrl()});
// TODO Replaces trailing slashes added by History after locale (e.g. admin/?locale=en/)
formData.push({name: 'BackURL', value:History.getPageUrl().replace(/\/$/, '')});

// Save tab selections so we can restore them later
this.saveTabState();
Expand Down

0 comments on commit 79c7276

Please sign in to comment.