BeginForm and ActionLink returning empty strings #276

Imported from the CodePlex archive for reference purposes. Support for MvcCodeRouting has ended.

Reported on

This is the issue described in the 6th post at ../discussions/254115.html#post613489

Url-generating methods like Html.ActionLink and Html.BeginForm are returning an empty string in some cases. The attached project has two controllers, one of which exhibits the issue, and the other which does not.

Correct behavior: /Admin/Test Incorrect behavior: /Admin/Players/Create

Start up the sample project and then browse to the two above. Each page should be self-explanatory. View the page source to see the empty action and href attributes on the second url.

Commented on link

Thanks for reporting this issue. Fixed.