mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Reapply fix for cms crashing due to History.js blindly appending slashes to end of url
This commit is contained in:
parent
66bacc69f0
commit
79c7276611
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user