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.
With OA Domains set up, the home icon links to the domain filled in in the Spaces' edit form. For a top-level Space this works fine, but when I add Subspaces to to the toplevel Space, the expected behaviour is that the home icon links to the base domain. It however defaults back to the site URL when visiting the subspace.
Site URL: www.example.com -> home icon links to www.example.com
Subdomain: myspace.example.com -> home icon links to myspace.example.com
Subspace of myspace: myspace.example.com/mysubspace -> home icon links to www.example.com
Comments
Comment #1
Argus CreditAttribution: Argus as a volunteer commentedLooking into this again, more likely this is an issue belonging to the Toolbar App. So moving it there. Please move back again if I'm wrong.
I was able to fix this behaviour by changing line 259 in oa_toolbar_module from
$vars['home_url'] = url('<front>', array('absolute' => TRUE));
toBut I have no idea if this is the right approach or if it may cause unwanted side-effects.
Comment #2
Argus CreditAttribution: Argus as a volunteer commentedIf it is the right solution then some logic needs to be added that changes this in case the oa_domains app is used.
Comment #3
Argus CreditAttribution: Argus as a volunteer commentedComment #4
mpotter CreditAttribution: mpotter commentedNeed a patch in order to mark this as Needs Review.