mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Decode URLSegment before showing it through SiteTreeURLSegmentField, to separate presentation from its internal url encoded value
This commit is contained in:
parent
73e5c34896
commit
20af440694
@ -21,6 +21,10 @@ class SiteTreeURLSegmentField extends TextField {
|
|||||||
'suggest'
|
'suggest'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
function Value() {
|
||||||
|
return rawurldecode($this->value);
|
||||||
|
}
|
||||||
|
|
||||||
function Field($properties = array()) {
|
function Field($properties = array()) {
|
||||||
Requirements::javascript(CMS_DIR . '/javascript/SiteTreeURLSegmentField.js');
|
Requirements::javascript(CMS_DIR . '/javascript/SiteTreeURLSegmentField.js');
|
||||||
return parent::Field($properties);
|
return parent::Field($properties);
|
||||||
|
Loading…
Reference in New Issue
Block a user