Navigating back to "Home" from an area (MVC2)
Posted
by SlackerCoder
on Stack Overflow
See other posts from Stack Overflow
or by SlackerCoder
Published on 2010-04-26T13:53:13Z
Indexed on
2010/04/26
13:53 UTC
Read the original article
Hit count: 287
asp.net-mvc-2
I have a few areas in my application that are relatively independent (all navigated to from the master page). So, as of now, I am simply using the "default" MVC2 template (the one you get when you create a new MVC2 project). So the menu looks like this:
HOME AREA1 AREA2 AREA3 AREA4 .... ABOUT
Now, when I first load up the page, I am on the "HOME", and I can click on the ABOUT without issue. I can navigate to any of the areas as well, however, once I navigate to an area page, I cannot get back to my home or about pages (404 not found). When I navigate to them, and click on about, the address bar shows .../AreaX/Home/Home instead of Home/Home as I would expect.
I expect that is has something to do with my routing, but Im not completely sure. I have added/changed nothing with the default routing (which is probably the issue!).
Any thoughts?
© Stack Overflow or respective owner