/taxonomy/term/id redirects pushed multiple times for multi-lang setup.

Created on 4 January 2024, 11 months ago
Updated 20 January 2024, 10 months ago

Problem/Motivation

From umami seed logs
```
[notice] [route_item] /en/tags/chocolate
[notice] [redirect_item]: Source: /taxonomy/term/7, Dest: /en/tags/chocolate
[notice] [route_item] /es/tags/chocolate
[notice] [redirect_item]: Source: /taxonomy/term/7, Dest: /en/tags/chocolate
```

Shows the redirect from /taxonomy/term/7 to canonical default language url (/en/tags/chocolate) is pushed multiple times during seed. No functional issue, just not required.

Should only create the redirect when dealing with the default language.

Cleaning up the GitHub issues so porting this to here:

https://github.com/quantcdn/drupal/issues/31

Steps to reproduce

Proposed resolution

Fix duplicate logging.

Remaining tasks

  • Update code
  • Review and test
  • Commit :)

User interface changes

No duplicate in logs.

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

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

Production build 0.71.5 2024