Problem/Motivation

When viewing the list of redirects in /admin/config/search/redirect, the “To” path column always displays URLs with the UI language prefix (e.g., /fr/...) regardless of the actual redirection language defined.

This is misleading, especially in multilingual sites with different source/target path aliases.

Screenshot in English UI
Screenshot in English UI

Screenshot in French UI
Screenshot in French UI

Steps to reproduce

  1. Create a multilingual Drupal site with at least English and French enabled.
  2. Set site default language to English.
  3. Create a node with translations in both languages.
  4. Create a redirect from /test (language = English) to /node/20 (English)
  5. View the redirect list in /admin/config/search/redirect
  6. Change UI language to French

Expected result

The “To” column still shows /en/alias if the redirect is in English.

Actual result

The “To” column shows /fr/..., which does not reflect the redirection language and is misleading.

Additional note

The actual redirection works correctly — however, the displayed paths in the “To” column are incorrect, as they always show the URL with the current UI language prefix instead of the actual redirection language.

Comments

zyef created an issue. See original summary.

zyef’s picture

Title: Redirect admin shows wrong language prefix in URL display » L'administrateur de redirection affiche un préfixe de langue incorrect dans l'affichage de l'URL
avpaderno’s picture

Title: L'administrateur de redirection affiche un préfixe de langue incorrect dans l'affichage de l'URL » Redirect admin shows wrong language prefix in URL display
Version: 8.x-1.11 » 8.x-1.x-dev
Status: Active » Closed (duplicate)
Related issues: +#3538116: Redirect admin shows wrong language prefix in URL display