In group space with changed default front page, breadcrumb link points to default group home page. Is it the design behavior or a bug?

How can I change any reference to group from default group home page (group node) to the home page set for group space? (I mean in /og page or views and breadcrumb?)

Comments

abbasmousavi’s picture

Priority: Critical » Normal
paolomainardi’s picture

Subscribe

paolomainardi’s picture

I think that the problem is related to OG:

// Return a breadcrumb array for a given groupnode.
function og_get_breadcrumb($group_node) {
  $bc[] = l(t('Home'), "");
  if (module_exists('og_views')) {
    $bc[] = l(t('Groups'), "og");
  }
  $bc[] = l($group_node->title, "node/$group_node->nid");
  return $bc;
}

Any change to have some bradcrumb alter ?

hefox’s picture

Breadcrumb can be changed via drupal_set_breadcrumb before template_preprocess_page, or via overriding theme_breadcrumb and altering stuff there.

while inside the space the, home page is the group homepage, so any link for front is changed to group front unless purl is disabled ( ie l(t('Home'), '', array('purl' => array('disabled' => TRUE))) or something), so core would also do this when linking to front.

I believe this is more a feature or support request; at least for my use cases this is desired behavior.