Token [node:book:*] provides empty values in LinkIt modul
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3581129. --> Reported by: [dbielke1986](https://www.drupal.org/user/3426903) Related to !171 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Like asked in the LinkIt module (related issue), the token provides empty values. </p> <p>As @sourav_paul said:</p> <blockquote><p>This is most likely not a Linkit logic bug.</p> <p>Inference from code: Linkit just hands the metadata string to Drupal&rsquo;s token service and tells it to clear anything unresolved in EntityMatcher.php (line 460). So when [node:book:title] comes back blank, Linkit is only exposing an upstream token-resolution failure.</p> <p>Core node tokens in NodeTokensHooks.php (line 24) define chains like author, created, and changed, but not book. That means [node:book:*] only works if extra book-token support exists.</p></blockquote> <p>Is there a bug in the book module?</p> <p>We are using Drupal 11.3.5 and book 3.0.1.<br> It may be related to the switch from book 2.* to 3.*</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Install Book module</li> <li>Install LinkIt module</li> <li>Configure a LinkIt matcher like above - e.g. [node:book:title]</li> <li>Select a text and start link</li> <li>Type in a text and check the output</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3580458](https://www.drupal.org/node/3580458) > Related issue: [Issue #3562297](https://www.drupal.org/node/3562297)
issue