I am just wondering why my subcategory path not redirect to cms page when i click on any cms page. When i click on cms page the subcategory path redirects to cms with parent category url. please go through this site click here

EX: www.example.com/category/subcategory... now click on about us page it will redirect to www.example.com/category/aboutus

Any idea would be appreciated.

  • Did you tried by clearing cache and by doing reindexing? Feb 18, 2015 at 7:47
  • 1
    What kind of extension are you using for the topmenu? This isn't default Magento Feb 18, 2015 at 7:48
  • need to more details basically code
    – Amit Bera
    Feb 18, 2015 at 7:49
  • I don't have too much knowledge of code but what i found at the time of re-indexing is url.php throwing exception at protected $_saveRewritesHistory = ; when i removed the equal sign protected $_saveRewritesHistory; now it's working fine. @GirishSH Amit Bera
    – Kishor
    Feb 18, 2015 at 8:18

1 Answer 1


It looks you use relative links in your html code eg.:

<li><a title="About Us" href="about-us">About Us</a></li>

You should change them to absolute ones by adding slash there:

<li><a title="About Us" href="/about-us">About Us</a></li>

If it's done in template file, it will be even better to use site URL helper:

<li><a title="About Us" href="<?php echo $this->getUrl('about-us')?>">About Us</a></li>
  • Can you provide me more details of how to use site URL helper. It looks good topic.
    – Kishor
    Feb 18, 2015 at 8:22
  • Kishor, it's part inside the <?php ?> tags. Feb 18, 2015 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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