What changed
BuildFieldTrait::getLinkFieldValues() previously returned URLs that double-encoded percent-encoded characters. Drupal's link field stores URIs with special characters already percent-encoded (e.g. a space in a file path is stored as my%20file.pdf). Passing such a URI through Url::fromUri() again encoded the % itself, producing %2520 instead of %20, making the generated URL incorrect and file links inaccessible.
The fix applies rawurldecode() to the stored URI before passing it to Url::fromUri(), so the encoding round-trip produces the correct result.
Affected method:
BuildFieldTrait::getLinkFieldValues()
---
Who is affected
Sites using BuildFieldTrait::getLinkFieldValues() or getLinkFieldValue() with link fields that reference files or any URI containing percent-encoded characters (e.g. spaces, parentheses).
---
Action required
None. This is a transparent bug fix. Links that were previously broken due to double-encoding will render correctly after updating.