Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Using RouteJS lib #56

Open
JobaDiniz opened this issue Mar 10, 2016 · 1 comment
Open

Using RouteJS lib #56

JobaDiniz opened this issue Mar 10, 2016 · 1 comment

Comments

@JobaDiniz
Copy link

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)

@Dresel
Copy link
Owner

Dresel commented Mar 15, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants