Haacked/RouteMagic — Issue #4: Route Debugger Not Showing Any Route Information
Author: chadrickm
Created: 2012-01-26 21:29:40+00:00
State: open

When I downloaded the RouteMagic solution and checked the RouteDebugger project I found that the following check was causing my issue:

'''csharp
if (!IsRoutedRequest(request) || !request.ContentType.Equals("text/html", StringComparison.OrdinalIgnoreCase))
{
return;
}'''

Commenting out this check allows me to see the route information but now it adds it to everything. js files etc. As @Cluggas suggested on the blog post (http://haacked.com/archive/2011/04/13/routedebugger-2.aspx) when I changed this check to look at the response content type things seem to be working fine.

Unrelated Question: How do I format C# code in github :P