I have created a HelloWorld Controller and it's corresponding view. All is working correctly when I go to http://localhost/HelloWorld
I am trying to add a menu item to the default MVC app. In the _Layout.cshtml file I have
<ul id="menu">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("Hello World", "HelloWorld", "")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
</ul>
Note they only thing I added was the Hello World part. However when I click on the menu item it takes me http://localhost/Home/HelloWorld. How do I get it to go to just http://localhost/HelloWorld?
I'm really new to MVC and not exactly sure what I'm doing. A few google searches have mentioned modifying the Routes in the Global.asax.cs but that seems a bit weird and not sure where to start there. I've also tried using the ~ to get back to root which works in the old school asp.net pages but not here.