There's currently not any generic way of rewriting entity URLs when using domain_source. Initial recommendation would be to have domain_entity_source implement hook_domain_source_path_alter() and invoke drupal_alter() calls to entity types with domain access enabled.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | domain_entity-support_source_outbound-2851003-3.patch | 2.26 KB | greenskin |
Comments
Comment #2
greenskin commentedHere's a patch for review. This allows entity type modules to implement hook_domain_source_ENTITY_TYPE_path_alter() (where "ENTITY_TYPE" would be a domain access allowed entity type) in order to rewrite any entity specific related paths.
Comment #3
greenskin commentedHere's a better solution, where entity type modules only need to return the entity ID they parse from the path.
Comment #4
bohartD7 reached its EOL back in January 2025, and there is no active release for D7 for this module.
Neither development nor support is planned for D7.
All D7-related issues (especially those with ~10 years of inactivity) are marked as outdated in a bunch.
If/once the issue still arises in D11+ versions, please create a follow-up issue.
Still, everyone can apply the patch above (not finally tested/verified by the maintainers) to their D7 projects.
Thanks!