Running drush quant:tome:deploy includes duplicate redirects

Created on 10 March 2024, 8 months ago

Problem/Motivation

When testing drush quant:tome:deploy, there were a lot of duplicate redirects listed like:

[redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /contact, Dest: /en/contact
 [notice] [redirect_item]: Source: /contact, Dest: /en/contact
 [notice] [redirect_item]: Source: /alaksdjf, Dest: /en/alaksdjf
 [notice] [redirect_item]: Source: /alaksdjf, Dest: /en/alaksdjf
 [notice] [redirect_item]: Source: /asdfsdf2, Dest: /en/asdfsdf2
 [notice] [redirect_item]: Source: /asdfsdf2, Dest: /en/asdfsdf2
 [notice] [redirect_item]: Source: /quant/validate, Dest: /en/quant/validate
 [notice] [redirect_item]: Source: /quant/validate, Dest: /en/quant/validate
 [notice] [redirect_item]: Source: /search/node/help, Dest: /en/search/node/help
 [notice] [redirect_item]: Source: /search/node/help, Dest: /en/search/node/help
...
[notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /, Dest: /en
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /es/node, Dest: /es
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /en/node, Dest: /en
 [notice] [redirect_item]: Source: /es/node, Dest: /es
...

Steps to reproduce

  • Install/configure D10 with Umami profile
  • Install/configure quant_api, quant_tome, tome_static and tome_sync modules
  • Generate static content with drush tome:static
  • Sync content to Quant with drush quant:tome:deploy
  • Check the output and see the redirects

Proposed resolution

Don't include duplicate redirects.

Remaining tasks

  • Update code
  • Review and test
  • Commit

User interface changes

The duplicate redirects won't show up in drush log.

API changes

Data model changes

πŸ› Bug report
Status

Active

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