Module does not work

Created on 11 June 2024, 20 days ago
Updated 18 June 2024, 13 days ago

Problem/Motivation

I just tested out this module, but it doesn't seem to work:

  • When creating a second node with the same title as another one ('Test'), but with another canonical domain, a unique alias is generated ('/test-0') instead of being able to reuse the existing path ('/test'):

    The automatically generated alias /test conflicted with an existing alias. Alias changed to /test-0.

  • After fixing this, when creating the same alias on multiple domains, all domains redirect to the same node, regardless of the canonical domain assigned to that node.

Proposed resolution

Instead of getting the domain from field_domain_source on the request, which only works when creating/updating a node, I think we should fallback to the current active domain. This way the overridden getPathByAlias function also works in path processors, outside the alias generation context.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium DieterHolvoet Brussels

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024