Domain Source does not work when active_domain link option is set in processOutbound

Created on 21 January 2022, almost 3 years ago
Updated 17 October 2024, about 2 months ago

Drupal Version

9.2.11

Domain module version

8.x-1.0-beta6

Expected Behavior

* Entity links to source domain

Actual Behavior

* Entity links to current domain

Steps to reproduce

Create a link programmatically with active_domain as link options or use another module which sets this option like the patch from https://www.drupal.org/project/domain_entity/issues/3042581#comment-1432... .

🐛 Bug report
Status

Needs review

Version

2.0

Component

- Domain Source

Created by

🇩🇪Germany tobiasb Berlin

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany tobiasb Berlin

    Technically it is still not possible, to set a own active_domain. But I can not remember why it was needed.

        $url = Url::fromUserInput("/admin", ["active_domain" => Domain::load("my_domain_2")]);
        $form['link'] = [
          '#type' => 'link',
          '#url' => $url,
          '#title' => $url->toString()
        ];
    
Production build 0.71.5 2024