src/Ui/ControlPanel/Component/Section/SectionNormalizer.php 1 location
|
@@ 122-128 (lines=7) @@
|
119 |
|
$section['attributes']['href'] = url($section['attributes']['href']); |
120 |
|
} |
121 |
|
|
122 |
|
if ( |
123 |
|
isset($section['permalink']) && |
124 |
|
is_string($section['permalink']) && |
125 |
|
!starts_with($section['permalink'], 'http') |
126 |
|
) { |
127 |
|
$section['permalink'] = url($section['permalink']); |
128 |
|
} |
129 |
|
} |
130 |
|
|
131 |
|
$builder->setSections(array_values($sections)); |
src/Ui/Form/Component/Action/ActionNormalizer.php 1 location
|
@@ 121-127 (lines=7) @@
|
118 |
|
/* |
119 |
|
* Make sure the HREF is absolute. |
120 |
|
*/ |
121 |
|
if ( |
122 |
|
isset($action['redirect']) && |
123 |
|
is_string($action['redirect']) && |
124 |
|
!starts_with($action['redirect'], ['http', '{url.']) |
125 |
|
) { |
126 |
|
$action['redirect'] = url($action['redirect']); |
127 |
|
} |
128 |
|
|
129 |
|
$action['attributes']['name'] = $prefix . 'action'; |
130 |
|
$action['attributes']['value'] = $action['slug']; |