Occasionally I am encountering an error along these lines:
The website encountered an unexpected error. Please try again later.InvalidArgumentException: The URI 'XYZ' is invalid. You must use a valid URI scheme. in DrupalCoreUrl::fromUri() (line 290 of core/lib/Drupal/Core/Url.php).
We are migrating data frequently and one thing that can happen is link field URIs can come in like that. The core LinkFormatter class does not seem to handle exceptions, although there is this issue:
https://www.drupal.org/project/drupal/issues/2745179
If this patch does not apply/work, what other resolution is there? Should I point the LinkFormatter class definition to a custom class that catches exceptions?