f_7yhg
Last Updated: February 25, 2016
·
1.354K
· section9

Linking to actions in the default area in MVC 4

If you are using multiple areas in your MVC application, when you link to an action in a controller in your default area you will be stuck inside the area you are in now.

Use this:
@Html.ActionLink("Home", "Index", "Home", new { Area = ""}, null)

This will force the area to be the default one.