-
Notifications
You must be signed in to change notification settings - Fork 156
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
ExtractLangTagFromUrl broke url if url not contains language. #289
Comments
Yes, this is issue has been raised a few times before. Say the URL is The way to solve this would be run the language matching algorithm during ExtractLangTagFromUrl. However, because the code is performance sensitive (esp. during processing of outgoing requests when it is called for any/every URL found in the response) I found a valid reason for not doing the work to implement that:
As this issue keeps cropping up, and IIRC each time it was for |
Thanks for your answer. If that is known problem then ok. I did not guessed to search "Api" in issues. |
I've edited the default UrlLocalizer.QuickUrlExclusionFilter setting to now exclude '/api/...' urls by default from url localization. |
Hello.
To see this issue add to test LanguageTagTests.ExtractLangTagFromUrl following lines:
So it extracted "Api" as langtag and url become "/City".
I expect from this function to only extract tag for language that is in currently supported languages list LanguageHelpers.GetAppLanguages(). What do you think about it?
Thanks for your great work.
The text was updated successfully, but these errors were encountered: