AI Deepchat: AI Assistant links are not always relative to root when not absolute
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3497916. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The agents or RAG usually will always respond with links that are relative to root or absolute, since it might not have context of where it is on the site. In certain cases the AI rewrites this as relative links, but not to the root.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Happens randomly, but if you ask the field agent to generate enough fields, at one time it will give back a faulty link that is not relative to root and you get a 404 when you click it.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Check the output the assistant messages in Deepchat, and if something is not relative to the root, but also not absolute add a slash to the beginning.</p>
issue