0

When I try sample application which is made as default with asp.net mvc 3.0, the home and about links just work fine. But whenever I try to add custom route data in global.asax like controller/action/id=urlhelper.optional,param=urlhelper.optional and run the project, all the links' href just vanishes. ie. <a href="">Home</a> like markup gets generated. Please help. Thanks, Gaurav

1 Answer 1

1

This is a known bug in MVC 3. Here is a blog post: http://haacked.com/archive/2011/02/20/routing-regression-with-two-consecutive-optional-url-parameters.aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.