Ok, I made little hack for file
/libraries/kunena/view.php
1. Find code (line 105)
Code:
if (JFactory::getApplication()->isAdmin())
add above this code
Code:
$juricurrent = JURI::current();
Then, after code
Code:
{
$this->displayLayout();
}
add
Code:
elseif ($juricurrent == 'http://yoursite/forum'){
$this->document->addHeadLink( $juricurrent, 'canonical', 'rel', '' );
include JPATH_SITE .'/'. $this->ktemplate->getFile('html/display.php');
}
where http://yoursite/forum is your url on forum main page
So, public function displayAll code should looks like:
Code:
public function displayAll()
{
if ($this->inLayout)
{
throw new LogicException(sprintf('HMVC template should not call %s::%s()', __CLASS__, __FUNCTION__));
}
if ($this->me->isAdmin())
{
if ($this->config->board_offline)
{
$this->app->enqueueMessage ( JText::_('COM_KUNENA_FORUM_IS_OFFLINE'), 'notice');
}
if ($this->config->debug)
{
$this->app->enqueueMessage ( JText::_('COM_KUNENA_WARNING_DEBUG'), 'notice');
}
}
if ($this->me->isBanned())
{
$banned = KunenaUserBan::getInstanceByUserid($this->me->userid, true);
if (!$banned->isLifetime())
{
$this->app->enqueueMessage ( JText::sprintf ( 'COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS_EXPIRY', KunenaDate::getInstance($banned->expiration)->toKunena('date_today')), 'notice');
}
else
{
$this->app->enqueueMessage ( JText::_ ( 'COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS' ), 'notice');
}
}
$this->state = $this->get ( 'State' );
$this->ktemplate->initialize();
$juricurrent = JURI::current();
if (JFactory::getApplication()->isAdmin())
{
$this->displayLayout();
}
elseif ($juricurrent == 'http://yoursite/forum'){
$this->document->addHeadLink( $juricurrent, 'canonical', 'rel', '' );
include JPATH_SITE .'/'. $this->ktemplate->getFile('html/display.php');
}
else
{
$this->document->addHeadLink( KunenaRoute::_(), 'canonical', 'rel', '' );
include JPATH_SITE .'/'. $this->ktemplate->getFile('html/display.php');
if ($this->config->get('credits', 1))
{
$this->poweredBy();
}
}
}
Of course, this hack will lost after update.
I can't understand, why Kunena developers can't fix this major BUG.