Support for internal link widget
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #2846339. --> Reported by: [jzavrl](https://www.drupal.org/user/2326492) >>> <p>So just like it was already stated in <a href="https://www.drupal.org/node/2828599">#2828599</a> if you use the internal/autocomplete link widget and select a field from the formatter settings the link is not being created. This is because the autocomplete widget provides URI links such as internal: or entity:node/1. It does work with external URLs however.</p> <p>I've found that the main reason for this is because of <code>$this-&gt;pathValidator-&gt;getUrlIfValidWithoutAccessCheck($destination);</code>. The <code>$destination</code> can be presented as <code>entity:node/1</code> and that function will return FALSE for that.</p> <p>I've changed the method to create an Url object from its <code>fromUri()</code> method. It accepts external and internal links, entity links and also fragments and queries. The method itself also checks if the given URI is valid.</p> > Related issue: [Issue #2828599](https://www.drupal.org/node/2828599)
issue