On my home page, when you click the logo or the home page button on my menu, instead of just my site (www.mysite.com) it says mysite.com/index.php?main_page=index. How can I get rid of the index.php?main_page=index?
Printable View
On my home page, when you click the logo or the home page button on my menu, instead of just my site (www.mysite.com) it says mysite.com/index.php?main_page=index. How can I get rid of the index.php?main_page=index?
What's the problem with it being there?
you would need to choose one of the SEO url modules available in the plugins section ( Link in Header )
So, not necessarily if the only link to modify was the "homepage" link at the top of the browser. It could possibly be hard coded, but then any parameters that exist wouldn't be carried over. It could be that at least the main_page parameter could be omitted with proper generation of the uri using zen_href_link. It could be that the current template has incorrectly implemented the link. On a ZC 1.5.4 site that has had little modification (none to the tpl_header file) the home link goes directly to the root of the store without all the extra information.
So in that regards, I'd have to ask what is different about this template than the template_default version of the equivalent file(s).
If they choose to go the path of a uri rewriter, so be it, but doubtful it would fix the issue. May actually cause more aggrivation assuming the template is incorrectly coded.
I have the newest version installed 1.5.4. The template is from zen4me called Hope. I have 2 other zencarts & when you click on the logo on the home page, it goes to mysite.com with nothing else. I guess it is the template because I turned on the classic template and it works as it should. I was just hoping there was an easy fix.
I would suggest looking at the template file: includes/templates/YOUR_TEMPLATE/common/tpl_header.php as compared to includes/templates/template_default/common/tpl_header.php.
It seems that the default method of the logo link is to build it directly from base path for the site instead of by creation with zen_href_link...
That is/typically is the file that has that information; however, there is no requirement for it to be there. Would generally be a good location to start though...
I added the module Ultimate URL's and it fixed it!