Skip to content

ExtractLangTagFromUrl broke url if url not contains language. #289

@VitaliySmolyakov

Description

@VitaliySmolyakov

Hello.
To see this issue add to test LanguageTagTests.ExtractLangTagFromUrl following lines:

ExtractLangTagFromUrlHelper("/Api/City", "Api", "/City"); // Pass!
ExtractLangTagFromUrlHelper("/Api/City", "", "/Api/City"); // I expected. It failed.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions