I have the following ActionLink in my view
<%= Html.ActionLink(\"LinkText\", \"Action\", \"Controller\"); %>
and it creates the follo
I explicitly set the action name as "Action/". Seems a little like a hack but it's a quick fix.
@Html.ActionLink("Link Name", "Action/", "Controller")
I needed my menu links to be dynamic. Rather than implement a lot of extra code and routing for every single page I simple dispensed with the HTML helper.
<a href="@(item.websiteBaseURL)/@(item.controller)/@(item.ViewName)">@item.MenuItemName</a>
The problem is the built in methods take input from the URL you are currently on as well as what you supply. You could try this:
<%= Html.ActionLink("LinkText", "Action", "Controller", new { id = ""}) %>
That should manually wipe the id parameter.