RouteLocalization icon indicating copy to clipboard operation
RouteLocalization copied to clipboard

Using RouteJS lib

Open JobaDiniz opened this issue 9 years ago • 1 comments

RouteJS provides a way to generate mvc routes from javascript:

I tried the following: var url = Router.action('DataSouce', 'Create', { culture: 'en-us' });

However, culture parameter doesn't do anything. The resulted url is: /fonte-dados/Novo?culture=en-us (Portuguese)

JobaDiniz avatar Mar 10 '16 18:03 JobaDiniz

Thanks for reporting this issue.

I dug into the RouteJS library - the problem is how RouteJS and RouteLocalization works internally. I will change the implementation from one LocalizationCollectionRoute per action to multiple MVC standard routes per translation (I'll have to do this anyway for MVC6 / ASP.NET Core) - this should then be compatible with RouteJS.

Dresel avatar Mar 15 '16 07:03 Dresel