In my Magento store, the URL of the selected page is getting concatenated with the existing URL that is for example if I am in the URL http://electric.com/ninja and select another option in the menu as switches.
Instead of getting redirected to the URL http://electric.com/switches.html it is getting redirected to the URL http://electric.com/ninja/switches.html by concatenating itself to the previous URL as a result, I am getting the 404 error as the page doesn't exist.
Kindly let me know Why is this happening and how can I resolve this.