"Translate with AI" Button Not Appearing Due to Route Alteration Conflict with Other Modules
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3480861. --> Reported by: [arwillame](https://www.drupal.org/user/3726366) Related to !206 !378 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I am encountering an issue where the "Translate with AI" button provided by the ai_translate module is not appearing on the content translation overview page. After investigating the issue, it seems to be caused by a route alteration conflict with other contrib modules that are also altering the content translation overview route (e.g., language_access).</p> <p>Both modules are trying to alter the same route (entity.{entity_type}.content_translation_overview), and since ai_translate relies on altering the controller to inject the AI translation button, the changes from other contrib modules (like language_access) may override or prevent the AI functionality from being displayed.</p> <p>Route subscriber : <a href="https://git.drupalcode.org/project/ai/-/blob/1.0.x/modules/ai_translate/src/Routing/AiTranslateRouteSubscriber.php">https://git.drupalcode.org/project/ai/-/blob/1.0.x/modules/ai_translate/src/Routing/AiTranslateRouteSubscriber.php</a><br> Example of other route subscriber ( language_access) : <a href="https://git.drupalcode.org/project/language_access/-/blob/2.0.x/src/EventSubscriber/RouteSubscriber.php?ref_type=heads">https://git.drupalcode.org/project/language_access/-/blob/2.0.x/src/EventSubscriber/RouteSubscriber.php?ref_type=heads</a></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>- Enable the ai_translate module and another contrib module that alters the same route (e.g., language_access).<br> - Go to the content translation overview page of any translatable entity.<br> - Observe that the "Translate with AI" button does not appear.</p>
issue