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

Argus’s picture

Component: Domains App » Toolbar App
Status: Active » Needs review

Looking 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)); to

function template_preprocess_oa_toolbar(&$vars) {
  global $user;

  // Separators
  $vars['oa_toolbar_separator'] = t('&gt;');
  $vars['home_url'] = url('<front>', array('absolute' => FALSE));

But I have no idea if this is the right approach or if it may cause unwanted side-effects.

Argus’s picture

If it is the right solution then some logic needs to be added that changes this in case the oa_domains app is used.

Argus’s picture

Title: Home icon links to site URL when visiting a sub-space of the domain » Home icon links to site URL when visiting a sub-space of the domain, in case oa_domains App is used
mpotter’s picture

Status: Needs review » Active

Need a patch in order to mark this as Needs Review.