strange problem with the menu

Started by flapjack, March 08, 2011, 08:57:24 PM

Previous topic - Next topic

flapjack

ok, so I've added anothe position in Sources/Subs.php:
            'forum' => array(
                'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
                'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
                'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
                'sub_buttons' => array(
                ),
            ),
            'chat' => array(
                'title' => 'Chat',
                'href' => $scripturl . '?page=chat',
                'show' => true,
                'sub_buttons' => array(
                ),
            ),


Which should redirect to the chat page, created using SimplePortal, which is:
http://enjoykalkan.com/forum/index.php?page=chat
and works just fine

but when I load the site, strangely the link points to:
http://enjoykalkan.com/forum/index.php/page,chat


the only mods installed are:
1. SimplePortal 2.3.3
2. SA FBConnect 1.0 RC4 Rev285
3. Menu_Icons 1.0
4. SMF Gallery Pro 3.0.14


and before you ask - I can make a change to every other link and it works, but this one still doesn't

any clues what might be wrong?

Arantor

You've turned on queryless URLs. SimplePortal is writing that link on your behalf.

Mick.

Why not use the full url?
            'forum' => array(
                'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
                'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
                'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
                'sub_buttons' => array(
                ),
            ),
            'chat' => array(
                'title' => 'Chat',
                'href' => 'http://enjoykalkan.com/forum/index.php?page=chat',
                'show' => true,
                'sub_buttons' => array(
                ),
            ),


flapjack

Quote from: Arantor on March 08, 2011, 09:00:07 PM
You've turned on queryless URLs. SimplePortal is writing that link on your behalf.
spot on, but why the hell only this one was affected?

@bluedevil:
believe me, I tried all the combinations :)

Arantor

Quotespot on, but why the hell only this one was affected?

Because queryless URLs only rewrites board=x and topic=x links, not all links (and you don't have links to those in the menu) and SimplePortal adds page=x links, and it's being "helpful" in rewriting them.


Advertisement: