I have store on which i am having the category for my product . on Home page my link to product is www.example-site.com/product_sold.html but when i go to my cart and from there i open category menu it will display www.example-site.com/mycart/product_sold.html which will give me result not found can any tell me how to solve it


Goto app/design/frontend/rwd/default/template/page/html and open topmenu.phtml file. find this code

<?php if($_menu): ?>
    <nav id="nav">
        <ol class="nav-primary">
            <?php echo $_menu ?>
<?php endif ?>

this code will output you the categories in the form of top menu if you don't use any categories hide this code or else paste this code before or after this code.


               <li><a href="<?php echo Mage::getBaseUrl(); ?>">HOME</a></li>
                <li><a href="<?php echo Mage::getBaseUrl(); ?>aboutus">ABOUT US</a></li>
                <li><a href="<?php echo Mage::getBaseUrl(); ?>your_page_uri">your_page_name</a></li>
                <li><a href="<?php echo Mage::getBaseUrl(); ?>your_page_uri">your_page_name</a></li>

| improve this answer | |
  • Actually i got this solution long time ago but with same solution. – Bhupendra Jadeja Jul 23 '15 at 7:26

Adding two slashes at the start of the link will make it a 'Scheme Relative URI' and allow Magento to switch in and out of SSL and most likely alleviate the relative linking problem you are having.


| improve this answer | |
  • 1
    no luck to solve problem , if i flush cache it solve the problem but is not solution – Bhupendra Jadeja Aug 27 '13 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.