9

Closed

MVC areas do not support RouteCollection.LowercaseUrls

description

See http://stackoverflow.com/questions/13271048/net-4-5-mvc-routecollection-lowercaseurls-breaks-when-using-area for full details.

It appears that this is caused by there being multiple instance of RouteCollection - one "global" one, and one per area. Presumably we'd need to propagate the settings from the parent RouteCollection to the area ones (or something like that).

file attachments

Closed Jun 5, 2013 at 2:25 AM by kichalla
Verified.

comments

grantmcdade wrote Feb 24, 2013 at 11:07 AM

Hello!

This is my first contribution so I hope I did not mess up to badly. :)

Here is a patch file to fix this issue. The change also addresses other 'potential' issues with the properties AppendTrailingSlash and RouteExistingFiles which would suffer the same fate as LowercaseUrls when using an Area.

It also includes test cases to verify the problem, as well as the fix.

Best Regards,
Grant

grantmcdade wrote Apr 13, 2013 at 8:41 PM

eilonlipton wrote Apr 13, 2013 at 9:31 PM

@grantmcdade thanks for the reminder! I'm marking the bug as "resolved" so that the QA team can do final verification on this.