Add support for language detection per domain

Created on 4 July 2023, over 1 year ago
Updated 24 October 2023, about 1 year ago

Problem/Motivation

Currently the pagedesigner_link element is rendered with a language prefix in the URI.
When working with multi-domain / multilingual website and language detection part of the URL being the domain, node paths do not have a language prefix, so all links created through PD returns 404.

Steps to reproduce

  • Install drupal with domain, language and pagedesigner modules.
  • Define the language detection part of the URL as the domain
  • Create link to a node inside a pagedesigner element

Proposed resolution

I suggest reworking the get mehtod of the Link Handler to directly use the url generated for the node (see patch).
That way it will display the proper url for the given context.
See patch attached

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France GuillaumePacilly

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024