BUGFIX Decode URLSegment before showing it through SiteTreeURLSegmentField, to separate presentation from its internal url encoded value

This commit is contained in:
Ingo Schommer 2012-05-14 15:12:33 +02:00
parent 73e5c34896
commit 20af440694

View File

@ -21,6 +21,10 @@ class SiteTreeURLSegmentField extends TextField {
'suggest'
);
function Value() {
return rawurldecode($this->value);
}
function Field($properties = array()) {
Requirements::javascript(CMS_DIR . '/javascript/SiteTreeURLSegmentField.js');
return parent::Field($properties);