Redirect admin shows wrong language prefix in URL display

Created on 25 July 2025, 16 days ago
Updated 26 July 2025, 15 days ago

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

<!--break-->

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.

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

User interface

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024