Closed (fixed)
Project:
Domain Path
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2025 at 15:46 UTC
Updated:
31 Dec 2025 at 10:14 UTC
Jump to comment: Most recent
The module is currently only compatible with the domain version 1.0-beta or 2.x according to the composer.json file, it would be good to update it so that it's also compatible with version 3.x of the domain module.
Have both this module and domain installed (2.x) and then try to update the domain module with: composer require 'drupal/domain:3.x-dev@dev' and then observe error:
Problem 1
- drupal/domain_path is locked to version 1.5.0 and an update of this package was not requested.
- drupal/domain_path 1.5.0 requires drupal/domain ^1.0-beta || ^2 -> found drupal/domain[dev-1.x, dev-2.0.x, 1.0.0-beta1, ..., 1.x-dev (alias of dev-1.x), 2.0.0-beta1, ..., 2.0.x-dev (alias of dev-2.0.x)] but it conflicts with your root composer.json require (3.x-dev@dev).
Update the module to be compatible with 3.x of domain
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
Comment #2
lincoln-batsirayi commentedComment #5
mably commentedTested successfully on a multilingual Drupal 11.2.10 instance with Domain 3.x.
Switched the DomainPathAliasManager to be a decorator, but still not sure it's the best architecture if we want to implement a much-needed efficient caching mechanism.
Will think a bit more about it.
Comment #6
mably commentedI have backported the cache mechanism from the core AliasManager service into the DomainPathAliasManager decorator.
Performance should be optimal.
Comment #7
lincoln-batsirayi commentedI was able to test this on drupal 10.3.x and it worked well for me, i did not spot any issues. I did the test by aliasing the domain module to 2.x like so
composer require "drupal/domain:3.x-dev as 2.0.0-beta8"Comment #8
mably commentedComment #9
mably commentedComment #10
mably commentedWe are also dropping support for EOL Drupal versions.
Comment #12
mably commentedComment #14
mably commentedIncluded in release 2.0.0-alpha1.