Shape 5

Joomla Templates => Sportopolis - Club => : kboy December 12, 2010, 02:20:48 PM

: menu - home page - problem?
: kboy December 12, 2010, 02:20:48 PM
I have been a member for about a year. I have field-tested several of your templates and you guys to a great job. I have sites up with the NewsLink template, Sportopolis, and Touch of Soul. I turned on sef on the Touch of Soul template a couple of months ago and started having problems with the home button on the menu. I had used this for a Church site I did where traffic is not really that important so I just turned off the sef and everything worked fine. Late I did the same thing on Sportopolis and it happened again. Traffic was more important on this site so I did everything I could think of to fix it. Even redirect components with no luck. Maybe you have had this happen before.

This is what happens. When you go to the site from the web and you are at the home page of the domain such as You can click on any link (menu and internal links and are directed to the correct page). If you click the home button from that page, you then find yourself at http://yoursitename/home.html or http://yoursitename/index.html. If you try to go to an internal link such as an imported newsfeed or article it routes you through home or index such as http://yoursitename/home/page1 which places you at the home page with the article showing up in the mainbody section rather than taking you to the article page itself. Since your menu is hardcoded, I can't seem to change it. I added a new home link, but could not delete yours without 404 errors. The problem only occurs on the site I have with Shape5 templates where I am using your default menu. Do you have a workaround?

: Re: menu - home page - problem?
: mikek December 13, 2010, 08:53:38 AM
Hello, it's an issue with the way Joomla creates the frontpage link. If you edit the s5_no_moo_menu.php file and find:

switch ($mitem->browserNav) {
      case 1:
    if ($mitem->cnt > 0) {

Just above that area add:

if ($mitem->home == 1) {

$mitem->link = "";


: Re: menu - home page - problem?
: kboy December 16, 2010, 09:24:04 AM
Thanks. I'll try that.

: Re: menu - home page - problem?
: kboy December 19, 2010, 09:51:28 AM
That worked really great. Now I am having the same issue on a different template where I am using the S5 horizontal login. After login the redirect says which leads to the same problem. I have the redirect set via the drop down menu to home.

: Re: menu - home page - problem?
: kboy December 19, 2010, 10:51:44 AM
Never mind. When having problems, sometimes, I tend to overthink things. The answer is do not select a redirect at all. Leave as the default and you will wind up at the same page.