Conflict with Path prefix for language detection drupal 8

Created on 26 August 2016, almost 8 years ago
Updated 16 January 2023, over 1 year ago

Problem description

When having both Language and Domain (country) codes as part of the URL, the language module assumes the first code is the language code. My requirement is to have a URL syntax: /[domain]/[language]/some-page.

The Country Path outbound processor concatenates the $path variable. Other processors, like the Language URL, use the $options['prefix'] variable.

Proposed resolution

It looks like the LanguageNegotiationUrl class is adding/removing a prefix at/from the beginning of the URL. Changing the priority of the Domain inbound and outbound processor to have the CountryPath inbound processor acts first and the outbound processor acts last.

Use $options['prefix'] in the outbound processor.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands jurcello

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024