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

Fixed redirect on invalid language code #777

Merged

Conversation

MichalTichy
Copy link
Contributor

Currently, when LocalizableProvider is given an invalid language code the exception is thrown instead of redirecting to default language.
This is happening because the dictionary with route parameters is treated as an anonymous object during copying of values. This behaviour results in copying of dictionary properties (Count, Keys, Values) instead of key value pairs.

This pull request addresses this issue by adding support for Dictionarystring, object> to method RouteBase. AddOrUpdateParameterCollection.

image

@MichalTichy MichalTichy requested a review from exyi October 15, 2019 11:51
@exyi exyi merged commit 5f7e215 into riganti:master Oct 21, 2019
@exyi
Copy link
Member

exyi commented Oct 21, 2019

Thanks for the fix.

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

Successfully merging this pull request may close these issues.

2 participants