- Issue created by @adiro
We have a multi-language site and our view paths are absolute. We want to use the "Did you mean?" display option. Our absolute view path is causing an error in getSuggestionLink()
in src/Plugin/views/area/DidYouMeanSpellCheck.php
, as Drupal\Core\Url::fromUserInput()
won't accept an absolute path.
The error displayed is:
InvalidArgumentException: The user-entered string must begin with a '/', '?', or '#'. in Drupal\Core\Url::fromUserInput() (line 216 of /opt/drupal/web/core/lib/Drupal/Core/Url.php).
Use the "Did you mean?" display option with a view that has an absolute path.
Ensure the view path is relative before it is processed.
Active
4.0
Code