mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Temporarily reverted X-ControllerURL push state, as the header doesn't get set
correctly in LeftAndMain::handleRequest() correctly. This fixes saving pages until X-ControllerURL has been corrected.
This commit is contained in:
parent
a2979f0551
commit
f8a6db8d31
@ -164,13 +164,6 @@
|
||||
self.submitForm_responseHandler(form, xmlhttp.responseText, status, xmlhttp, formData);
|
||||
}
|
||||
|
||||
// Simulates a redirect on an ajax response - just exchange the URL without re-requesting it.
|
||||
// Causes non-pushState browser to re-request the URL, so ignore for those.
|
||||
if(window.History.enabled && !History.emulated.pushState) {
|
||||
var url = xmlhttp.getResponseHeader('X-ControllerURL');
|
||||
if(url) window.History.replaceState({}, '', url);
|
||||
}
|
||||
|
||||
// Re-init tabs (in case the form tag itself is a tabset)
|
||||
if(self.hasClass('ss-tabset')) self.removeClass('ss-tabset').addClass('ss-tabset');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user