public function getLink()
{
$app = JFactory::getApplication();
$menu = $app->getMenu();
// check the CB is it got created user profile menu item
$menuItem = $menu->getItems('link', 'index.php?option=com_comprofiler&view=userprofile', true);
$link = JRoute::_('index.php?option=com_comprofiler&view=userprofile&user=' . $this->profile->id, false);
if (!empty($menuItem->id)) {
$link = JRoute::_('index.php?option=com_comprofiler&view=userprofile&user=' . $this->profile->id . '&Itemid=' . $menuItem->id, false);
}
return $link;
}
Please Log in to join the conversation.
Please Log in to join the conversation.