mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-29 12:49:06 +02:00
BUG Fix regression in url concatenation #4967
This commit is contained in:
parent
02000e5446
commit
ac2681658a
@ -452,9 +452,11 @@
|
||||
// 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 (url) {
|
||||
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')) {
|
||||
|
Loading…
Reference in New Issue
Block a user