I was looking around in SP files and I think that I found fix for wrong URL and title in portal menu tab, here's my menu code:
//edit:
removed $scripturl, because now it is not used in my version
//edit2
doesn't work correctly with integration mode :|
//edit3
Now it works for me fine
Is someone needs solution for now here's button code:
function sp_integrate_menu_buttons(&$buttons)
{
global $txt, $scripturl, $modSettings, $context;
require_once(SUBSDIR . '/Portal.subs.php');
loadLanguage('SPortal', sp_languageSelect('SPortal'));
if ($modSettings['sp_portal_mode'] == 1)
$sportalurl = $scripturl;
elseif ($modSettings['sp_portal_mode'] == 3)
$sportalurl = $modSettings['sp_standalone_url'];
else
$sportalurl = '';
// Define the new menu item(s)
$buttons = elk_array_insert($buttons, 'home', array(
'portal' => array(
'title' => empty($txt['sp-portal']) ? 'Portal' : $txt['sp-portal'],
'data-icon' => '',
'href' => $sportalurl,
'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
'sub_buttons' => array(),
),
), 'after');
}
To move button to first position change after to before