Redirect to files folder in a translation language not working

Created on 4 June 2018, almost 7 years ago
Updated 20 May 2025, about 4 hours ago

Hello

During the tests of the issue #2543606: Redirect to files folder on multilanguage website not working β†’ , I discover a unexpected behaviour while defining a redirection.

When I try to access the URL "drupal-localhost/fr/sites/default/files/somefile.pdf", the interface display the "page not found" message + the invitation to create a redirection.
The language in the URL is "fr" which is not the default language.

When the form is displayed, the language code is not present in the "From" form field value; I have directly "sites/default/files/somefile.pdf" as value.
The expected behaviour would be to have "fr/sites/default/files/somefile.pdf" set in the "From" form field value

When I change the "From" value for "fr/sites/default/files/somefile.pdf" and save the redirection, the redirection is never applied and I receive again the the invitation to create a redirection.

I do not have this behaviour when the language code is the default language one; in my case, it was "en".

The patch proposed in #2543606: Redirect to files folder on multilanguage website not working β†’ does not fix the problem.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium jyraya

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