Framework: SharpArchitecture 1.0.48.410 RC2.
Problem: Links (using any form of Html.ActionLink) not working and only directs to the Home page.
Solution:
The Sharp MVC template creates a default route only for the Root. You can find the routes registration in “RouteRegistrar.cs” (under …Web.Controllers). If you hover over a link and there is not route display on the status bar that is a good indication that the problem is with routing. I am not using Areas (at least for now) so the easy solution was to add a “default” route to catch all controllers before the one creating the area. It will do for now as I need to complete this project soon but I bet there is a nicer way to add a default route for all controller to the “Root” area.
Add:
routes.MapRoute(“Default”, “{controller}/{action}”, new {action=”Index”});