Skip to content
Snippets Groups Projects
Commit e58d14be authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2424927 by Wim Leers: Docs typo in LinkWidget

parent 3ad86b60
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -148,8 +148,8 @@ public static function validateUriElement($element, FormStateInterface $form_sta
$uri = static::getUserEnteredStringAsUri($element['#value']);
$form_state->setValueForElement($element, $uri);
// If getUserEnteredStringAsUri() mapped the entered value is mapped to a
// 'user-path:' URI , ensure the raw value begins with '/', '?' or '#'.
// If getUserEnteredStringAsUri() mapped the entered value to a 'user-path:'
// URI , ensure the raw value begins with '/', '?' or '#'.
// @todo '<front>' is valid input for BC reasons, may be removed by
// https://www.drupal.org/node/2421941
if (parse_url($uri, PHP_URL_SCHEME) === 'user-path' && !in_array($element['#value'][0], ['/', '?', '#'], TRUE) && substr($element['#value'], 0, 7) !== '<front>') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment