It's currently not possible to use multiple language negotiations when using domain source URL rewriting.

You cannot mix domain-based language negotiation with prefix-based negotiation for example.

Domain source will generate URLs using the current domain language negotiation mechanism not the targeted one.

For example imaging having 3 domains:

  • domain
  • domain-en
  • domain-fr

The default domain uses a language prefix to handle English and French content.
The domain-en and domain-fr domains use domain-based language negotiation to display English and French content respectively.

When links to content whose domain source targets domain-en or domain-fr are displayed on the default domain, they are generated using language prefixes instead of the domain-based negotiation mechanism. Clicking these prefixed links on the language-specific domains results in 404 errors.

The solution is to allow links targeting other domains to be reprocessed by the language negotiation plugin in the context of the target source domain.

Check MR for more details.

Issue fork domain-3570178

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Issue summary: View changes
mably’s picture

Status: Active » Needs review

  • mably committed 799e2e25 on 3.x
    feat: #3570178 Handle multiple language negotiation mechanisms for...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

mably’s picture

Component: Code » - Domain Source

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.