I am working on an E-Commerce website and my requirement is to show URLs something like following. "../example.com/Electronics/Home-Audio-and-Theater/Portable-Audio/iPods"
Where Electronics is Main category and all of the subsequent parts are subcategories.
I have a Menu which shows level upto iPods(3rd level). I want that on click of any level the URL should be created accordingly. For Example:-
If I click on Electronics the URL should be:-
../example.com/Electronics
If clicked on "Home-Audio-and-Theater"
example.com/Electronics/Home-Audio-and-Theater
and so on.
All of the Names of levels are dynamic so I can't create controller for each level.
I need a technique by which I can show these URLs according to menu item clicked and hit the controller.
Please suggest ideas for this.
Thank You