Closed (fixed)
Project:
Domain Path
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2025 at 09:34 UTC
Updated:
13 Feb 2026 at 10:59 UTC
Jump to comment: Most recent
Using our custom domain_path database table for storing domain aliases implies duplicating a lot of code that could simply be reused or extended if we used the core path_alias table like the domain_unique_path_alias module is doing.
It will also allow to use the bulk update/delete mechanism of PathAuto.
Remove all unnecessary duplicated code and the custom domain_path entity type.
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
mably commentedComment #5
mably commentedComment #6
mably commentedComment #7
mably commentedMR 61 has been rebased. Could you give it a try @lincoln-batsirayi?
Comment #8
idebr commentedThe domain_path table is not removed in MR 61 in the database updates. Is this in scope?
Comment #9
mably commentedShouldn't we wait a bit before removing the table, just in case users need to rollback the update ?
We could remove the
domain_pathtable in a later update:@idebr what do you think?
Comment #10
mably commentedComment #11
idebr commentedIn the Drupal ecosystem, the source data is typically removed when database updates are completed, but ultimately it is up to the project maintainer. It is possible to write a test for database updates that could put assertions into code for debugging later, see for reference: https://www.drupal.org/docs/drupal-apis/update-api/writing-automated-upd...
Perhaps a follow-up issue to remove the original table at a later point in time, eg. before a stable release, would suffice in this case?
Comment #12
mably commentedI'll create the follow-up issue as soon as this issue gets merged.
Comment #13
mably commentedComment #14
lincoln-batsirayi commentedI've been testing this and this has been looking good but I’ve seen this error / warning after saving a page having added a domain to a page:
Comment #15
mably commentedHi @lincoln-batsirayi, problem should be fixed in 2.x. I rebased MR 61.
Could you give it a try?
Comment #17
mably commentedComment #19
mably commentedFollow-up issue has been created to remove the deprecated
domain_pathentities.#3570553: Remove the deprecated domain_path entities