Forum Support

Shape 5
March 28, 2024, 06:28:23 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: menu - home page - problem?  (Read 674 times)
kboy
Jr. Member
**
Offline Offline

Posts: 27



« on: 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 http://example.com. 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?
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: 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 = "";

}
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
kboy
Jr. Member
**
Offline Offline

Posts: 27



« Reply #2 on: December 16, 2010, 09:24:04 AM »

Thanks. I'll try that.
Logged
kboy
Jr. Member
**
Offline Offline

Posts: 27



« Reply #3 on: 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 http://domain.com/home.html which leads to the same problem. I have the redirect set via the drop down menu to home.
Logged
kboy
Jr. Member
**
Offline Offline

Posts: 27



« Reply #4 on: 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.