Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was wondering if it would be possible to have one path / url alias. But route it to different nodes / content, based on the current viewing domain.
For example the alias could be:
/foo
Than we would route it to:
domain.com/foo -> node/2
domain2.com/foo -> node/5
If this is not possible in core, maybe someone could suggest a alternative way.
I have looked at: https://www.drupal.org/project/domain_path but that seems to be the oter way around.
Comments
Comment #1
Michsk CreditAttribution: Michsk commentedi'm starting to think this module is not really fit for what i need.
Comment #2
drupal a11y CreditAttribution: drupal a11y commentedThe solution should have been this module, unfortunately "never" released: https://www.drupal.org/project/domain_url_alias
Comment #3
drupal a11y CreditAttribution: drupal a11y commentedYour request is also unfortunately older and still not solved: https://www.drupal.org/node/1923474
Comment #4
drupal a11y CreditAttribution: drupal a11y commentedThe only trick I currently can think about that you try to use multiple languages for that.
And then display one language on one domain.
Comment #5
drupal a11y CreditAttribution: drupal a11y commentedI made a feature request for this: https://www.drupal.org/node/2447567
Comment #6
Michsk CreditAttribution: Michsk commentedI am working on domain_url_alias at this moment. Will put a zip in that issue queue when done.