Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiCultureMvcRouteHandler handler instantiated twice #7

Closed
lukas-xb opened this issue Sep 3, 2018 · 1 comment
Closed

MultiCultureMvcRouteHandler handler instantiated twice #7

lukas-xb opened this issue Sep 3, 2018 · 1 comment

Comments

@lukas-xb
Copy link
Contributor

lukas-xb commented Sep 3, 2018

The RouteConfig seems to instantiate the MultiCultureMvcRouteHandler handler twice. Is this intentional? Thanks for looking into it.

route.RouteHandler = new MultiCultureMvcRouteHandler();

@Enngage
Copy link
Contributor

Enngage commented Sep 4, 2018

Yes, I believe this is necessary because its applied to each route separately (even though they are referencing 'route' variable which is always 'rewritten'). We have the same approach on the dancing goat sample here: https://github.com/Kentico/Mvc/blob/master/src/DancingGoat/App_Start/RouteConfig.cs

@Enngage Enngage closed this as completed Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants