Regression: every entity_autocomplete is assumed to be a link widget, generating incorrect values for entity_autocomplete (Webform block autocomplete is broken in 1.4.0)
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3588884. -->
Reported by: [pameeela](https://www.drupal.org/user/1431110)
Related to !1108
>>>
<h3 id="overview">Overview</h3>
<p>The autocomplete to select a webform on the default webform block component is broken as of 1.4.0. Instead of returning the expected format with label and machine name, e.g. <code>Newsletter Signup (newsletter_signup)</code>, it returns <code>entity:node/newsletter_signup</code> which is obviously invalid and can't be saved. </p>
<p>I think this might count as major because this prevents the saving of any component that contains a webform (even in a slot).</p>
<p>I assume not only webform is affected but I'm not sure what else provides autocomplete like this currently.</p>
<p>Steps to reproduce:</p>
<ol>
<li>Install Drupal CMS with Haven on Canvas 1.3.3</li>
<li>Edit any page and then edit the global footer region, click on the webform block</li>
<li>Type the name of any form (contact or newsletter) and select it, see that the form label and machine name appear as expected</li>
<li>Save the footer</li>
<li>Update to 1.4.0</li>
<li>Edit the footer again</li>
<li>Try to save it without making any changes</li>
<li>See that you get an error on the invalid webform machine name <code>'The <em class="placeholder">&quot;entity:node/newsletter_signup&quot;</em> machine name is not valid., There are no webforms matching "entity:node/newsletter_signup"., The <em class="placeholder">&quot;entity:node/newsletter_signup&quot;</em> machine name is not valid.'</code></li>
</ol>
<p>Before (1.3.3)<br>
<img src="https://www.drupal.org/files/issues/2026-05-07/Screenshot%202026-05-07%20at%204.41.32%E2%80%AFpm.png" alt="Before"></p>
<p>After (1.4.0)<br>
<img src="https://www.drupal.org/files/issues/2026-05-07/Screenshot%202026-05-07%20at%204.42.48%E2%80%AFpm.png" alt="After"></p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>?</p>
<h3 id="ui-changes">User interface changes</h3>
<p>?</p>
issue