Language redirects should be temporary

Created on 18 October 2023, about 1 year ago

Problem/Motivation

Language redirects should be temporary (302) instead of permanent as they depend on the user / browser context.
Currently it is not possible to distinguish them from legit 301.

Steps to reproduce

Enable multilingual on a drupal website, install redirect module, add language and translated content, use url prefix as language negotiation parameter.

Proposed resolution

Compare the redirected uri with the prefixed original and check if they match. If so use 302.

Remaining tasks

  • Check the provided fork for maybe a better solution
  • Add logic for language negotiation per Domain

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France GuillaumePacilly

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

Comments & Activities

Production build 0.71.5 2024