0
![Stack Overflow](http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png)
Following the advice @BrettSmith posted, I came up with the following solution:
I added a second route with the anchor and a constraint, so that this route would only get chosen if the anchor was specified.
routes.MapRoute(
"DocAnchor", // Route name
"{controller}/{action}/{id}...