I save menu links in my database with the format: "master/country", master is area name, and country is controller name. My web URL is http://localhost/appname. When I click the country menu, its redirects to the country page (http://localhost/appname/master/country). But when I click again the City menu item (in master area too), it redirects to http://localhost/appname/master/master/city. I write menu links in a StringBuilder
(including a tag) and store it in viewbag
.
I tried changing menu links to "/master/country", then the URL becomes http://localhost/master/country when I click first menu (country).
I am using MVC 5. How to create a links menu within the same area?