mccalltd / AttributeRouting

Define your routes using attributes on actions in ASP.NET MVC and Web API.
http://mccalltd.github.io/AttributeRouting/
MIT License
416 stars 89 forks source link

Bug: Route Name + Translation Key = Duplicate Keys #282

Open anilanar opened 10 years ago

anilanar commented 10 years ago

To reproduce this bug, one can set the translation key and the route name for an Action route. If there are multiple cultures that the translation provider can translate to, there will be route name duplications.

With the current implementation of AttributeRouting, there is no way of using TranslationKeys and customized route names; because currently RouteSpecification does not have a property regarding the culture (language) that the routing belongs to. So using a custom RouteNameBuilder is not an option too.