Link field values will get double escaped
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3568946. --> Reported by: [balagan](https://www.drupal.org/user/1230072) Related to !51 !43 >>> <p>When file paths contain spaces in a link field, Link field already stores the uri espaced, for example:<br> "uri" =&gt; "internal:/sites/default/files/2026-01/8387510262%207723705180.pdf"<br> When we create an Url object, and use that in a template it gets escaped again and file will not be accessible.</p> <p>Problem can be circumvented by not using spaces in file paths.</p> <p>Solution:</p> <p>use rawurldecode() on the uri before creating the Url object.</p>
issue