Conflict with Path prefix for language detection drupal 8

Created on 26 August 2016, over 8 years ago
Updated 16 January 2023, almost 2 years 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.71.5 2024