In my source file, I have something set up like this:
HOME > ACTION > SUBACTION
In the function that handles ACTION, I have added a link tree:
$context['linktree'][] = array(
'url' => $scripturl . '?action=CUSTOM',
'name' => $context['page_title']
);
In the subaction function, ?action=CUSTOM;sa=SUBACTION, I added:
$context['linktree'][] = array(
'url' => $scripturl . '?action=CUSTOM;sa=SUBACTION',
'name' => $context['page_title']
);
But when I go to the URL
/index.php?action=CUSTOM;sa=SUBACTION
I only see:
HOME > SUBACTION...
How do I make the tree build on the parent without having to do this inside the sub-action function?
$context['linktree'][] = array(
'url' => $scripturl . '?action=CUSTOM',
'name' => $context['page_title']
);
$context['linktree'][] = array(
'url' => $scripturl . '?action=study;sa=mindset',
'name' => $context['page_title']
);