Skip to content
Snippets Groups Projects

Issue #3465080: Path field prefix on sites which are not at the root of the domain is incorrect

Open Issue #3465080: Path field prefix on sites which are not at the root of the domain is incorrect
Open Tim Tripp requested to merge issue/redirect-3465080:3465080-path-field-prefix into 8.x-1.x
1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
@@ -46,9 +46,7 @@ class RedirectSourceWidget extends WidgetBase {
@@ -46,9 +46,7 @@ class RedirectSourceWidget extends WidgetBase {
'#default_value' => $default_url_value,
'#default_value' => $default_url_value,
'#maxlength' => 2048,
'#maxlength' => 2048,
'#required' => $element['#required'],
'#required' => $element['#required'],
// Add a trailing slash to make it more clear that a redirect should not
'#field_prefix' => Url::fromUri('internal:/', ['absolute' => TRUE]),
// start with a leading slash.
'#field_prefix' => \Drupal::request()->getSchemeAndHttpHost() . '/',
'#attributes' => ['data-disable-refocus' => 'true'],
'#attributes' => ['data-disable-refocus' => 'true'],
];
];
Loading