Redirects in other languages are not created for "all languages" option.

Created on 6 March 2024, 8 months ago
Updated 7 March 2024, 8 months ago

Problem/Motivation

When you create a redirect, you can choose "all languages" which generates additional redirects. For example, if the redirect is "something" => node/1 then you'll get /something, /en/something, and /es/something if you have English (with prefix) and Spanish languages and path prefix language negiotation. But, in Quant, you only get /en/something and /es/something so are missing the /something.

Steps to reproduce

  • Install/configure D10 with Umami profile and quant_api module
  • Create a redirect and choose "all languages" option
  • Test the redirect in Drupal with no prefix, /en and /es and the should all work
  • Check the redirects in Quant and there is only the /en and /es redirects even though all 3 should be there

Proposed resolution

Generate the additional redirect.

Remaining tasks

  • Update code
  • Review and test
  • Commit

User interface changes

Additional redirect will show up in Quant.

API changes

Data model changes

πŸ› Bug report
Status

Postponed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

  • Issue created by @Kristen Pol
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Actually, it has the /en/something and /es/something ones but not the /something one.

  • Status changed to Postponed 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    For now, a todo was added to seedRedirect. It uses getRedirectLocationsFromRedirect which is complex and requires careful thought and testing when changing.

    Postponing for now. If you are interested in this issue, please leave a comment.

Production build 0.71.5 2024