Hi again,

I just found a small bug that renders the link in the navigation menu to the current page invalid.

If you have a page www.mysite.org/node/7 and go to that page, the navigation menu link will point you to www.mysite.org/node/node/7 - which does not exist of course. So there is a bug in the string append code somewhere...

Cheers, Lars.

Comments

ssm2017 Binder’s picture

subscribe

cyberksystems’s picture

I agree. I am having the same problem. It is only with this theme somehow. This pretty much disables the use of this theme for my application until it is remedied. I will try to find the correction, but it will take me a while. If I find it, I will post it here. If anyone knows where to look at least, that will get me started????

cyberksystems’s picture

I think I found the error. I am pretty sure it works for me at least. Whether or not it is a "Universal" fix is to be tested but.... in page.tpl.php on line 33 you see

$out .= '<a href="/' . $link['href'] . '">';

the problem is at '<a href="/' the append link should be something like

'<a href="BASE PATH TO MY SITE/'

Once I find the code for that, we should be good. Pointers are welcome, otherwise it is only a matter of time for this newbie.

cyberksystems’s picture

WooHoo! Looks like I got it. Works for me anyway

The original line 33 in the page.tpl.php is:

$out .= '<a href="/' . $link['href'] . '">';

CHANGE it to :

$out .= '<a href="'. base_path() . $link['href'] . '">';

Just copy and paste this to ensure that you get all of the punctuation right. THen save your new page.tpl.php and refresh your site. The only problem I see it that this is listed under the $primary_link category. Those are the only ones I am using right now. So if you created a custom menu or are using secondary links, you may run across the same problem. If so, then this will be the same fix almost.