This code is inside the master page:
<li><a href="<%=Url.Action("Action", "Controller") %>">Main site link</a></li> <li><a href="<%=Url.Action("AreaAction", "AreaController", new {area = "Area"}) %>">Area link</a></li>
All the links works good till I'm going to the Area Link. When I go there all the routes of the main area don't work.
To fix that I can use this:
<li><a href="<%=Url.Action("Action", "Controller", new {area = ""}) %>">Main site link</a></li>
My question is, is there a way to avoid , new {area = ""}
on every link in the to the main site?
Its very annoying to have this on every link on the site.