francois.malicet Posted February 22, 2013 Share Posted February 22, 2013 (edited) hello, I have some problems with the horizontal menu of my website. I decided to make 3 categories in the horizontal menu I managed as indicated by the different tutorial that I need. No problem of the home of my website however, when I am on a product page, the Url present are distorted: I'm on http://www.mywebsite.com ==> Categories Link : OK (for ex : http://www.mywebsite.com/category4) I'm on http://www.mywebsite.com/category1 ==> Categories Link : OK (for ex : http://www.mywebsite.com/category5) I'm on http://www.mywebsite.com/cms5 ==> Categories Link : OK (for ex : http://www.mywebsite.com/category6) I'm on http://www.mywebsite...egory1/product1 ==> Error ===> Link go to http://www.mywebsite...gory1/category3 ==> 404 or I'm on http://www.mywebsite...gory4/product15 ==> Error ===> Link go to http://www.mywebsite...gory4/category3 ==> 404 or I'm on http://www.mywebsite...ory3/product155 ==> Error ===> Link go to http://www.mywebsite...gory3/category3 ==> 404 The link keep the category of the page product ! Only the Link categories make problem this is my tmheaderlinks.tpl : <div class="clearblock"></div> <ul id="tmheaderlinks"> <li><a href="{$link->getPageLink('index.php')}"{if $page_name == 'index'} class="active"{/if}>{l s='home' mod='tmheaderlinks'}</a></li> <li><a href="6-cigarette-electronique"{if $page_name == '6-cigarette-electronique'} class="active"{/if}>{l s='Cigarette electronique' mod='tmheaderlinks'}</a></li> <li><a href="7-e-liquide"{if $page_name == '7-e-liquide'} class="active"{/if}>{l s='E-liquide' mod='tmheaderlinks'}</a></li> <li><a href="8-accessoires"{if $page_name == '8-accessoires'} class="active"{/if}>{l s='Accessoires' mod='tmheaderlinks'}</a></li> <li><a href="{$link->getPageLink('contact-form.php')}"{if $page_name == 'contact-form'} class="active"{/if}>{l s='contact' mod='tmheaderlinks'}</a></li> </ul> Edited February 25, 2013 by francois.malicet (see edit history) Link to comment Share on other sites More sharing options...
Carlsen Posted February 24, 2013 Share Posted February 24, 2013 (edited) Hi francois.malicet, Not completely sure if it will help, but have you tried adding a slash before the link? Example: <a href="/8-accessoires" Edited February 24, 2013 by Carlsen (see edit history) Link to comment Share on other sites More sharing options...
francois.malicet Posted February 25, 2013 Author Share Posted February 25, 2013 I find the solution ! The good code is : <li><a href="{$base_uri}8-accessoires"{if $page_name == '8-accessoires'} class="active"{/if}>{l s='Accessoires' mod='tmheaderlinks'}</a></li> Thank for you help ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now