Skip to content

Wrong links for Archive pages and Custom Slugs #399

Open
@Drivingralle

Description

@Drivingralle

Copy of: https://wordpress.org/support/topic/wrong-links-for-archive-pages-and-custom-slugs-2/

Describe the bug
If archives in Custom Post Types are connected the connection works but the links inside the switcher block doesn't show the right link. The archive slug is not "translated". The system tries to build the link of the other language site but uses the wrong archive slug. The URL base and the slug of the term are right.

With my WooComerce Shop on Multiste. It’s with all product categories. The matching of the single products works fine. For example:

Archive:
DE: https://www.coworking-schlei.de/angebots-kategorie/verpflegung/
EN: https://www.coworking-schlei.com/product-category/drinks-and-snacks/

Single: Product
DE: https://www.coworking-schlei.de/angebote/coworking/tagesticket-flexdesk/
EN: https://www.coworking-schlei.com/booking/coworking/day-ticket-flexdesk/

I can’t find any hints inside my error logs.

Expected behaviour
The links to terms in the other languages should work with custom slugs.

Environment (please complete the following information):

  • Browser FF, chrome
  • PHP Version 8.2.22
  • Plugin Version 2.9.4
  • WP-Version 6.6

Additional context
Happy to help testing

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions