Add special flag to CMS preview requests

This commit is contained in:
Igor 2016-01-22 13:02:59 +13:00
parent 8e4db95f72
commit 3924db26d8

View File

@ -452,6 +452,9 @@
// No state available at all.
this.setCurrentStateName(null);
}
// Mark url as a preview url so it can get special treatment
url += ((url.indexOf('?') === -1) ? '?' : '&') + 'CMSPreview=1';
// If this preview panel isn't visible at the moment, delay loading the URL until it (maybe) is later
if (this.is('.column-hidden')) {