RouteNotFoundException for auto_node_translate.config_form in Auto Node Translate Libre Provider

Created on 19 March 2025, 18 days ago

Problem/Motivation

When an API error occurs in the try-catch block, the error handling tries to generate a link using the non-existent route auto_node_translate.config_form. This results in the following exception:

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "auto_node_translate.config_form" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 211 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "auto_node_translate

Steps to reproduce

  1. Install and configure the Auto Node Translate Libre Provider module.
  2. Set an invalid API key for LibreTranslate.
  3. Attempt a translation request.
  4. Observe the exception in the logs instead of the expected error message.

Proposed resolution

The correct route should be auto_node_translate.settings instead of auto_node_translate.config_form.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇵🇹Portugal mateus.francelino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024