AttributeRouting icon indicating copy to clipboard operation
AttributeRouting copied to clipboard

Localization + Multi route for single action = not working!

Open trangsinh opened this issue 11 years ago • 1 comments

[Route("", ActionPrecedence = 1, TranslationKey = "customkey1")] [Route("", ActionPrecedence = 2, TranslationKey = "customkey2")] public ActionResult List(string p1, string p2, string p3) { }

How can I make Localization and multi route for single action work together? Thanks,

trangsinh avatar Mar 01 '13 12:03 trangsinh

Just do it? Not sure what the problem is. If you provide AR with a TranslationProvider that yields translations for each of the keys you specified, then you'll have translated routes in the route table. If you need an orientation on the ins and outs, go here: http://attributerouting.net/#localizing-urls

mccalltd avatar Mar 02 '13 20:03 mccalltd