Skip to content

Controller name must be more than 3 chars #370

@roux1max

Description

@roux1max

Hi there,
First of all, thanks for the work you do, this plugin is really nice, however I just stumbled upon a crispy little problem.

I didn't check how you include the locale into the links but it seems you use regular expressions. The problem is: If you name one of your Controller AbcController (or anything that has 3 letters or less before "Controller"), the generated URL for this controller does not have the locale in it.

Example :

I have a controller named BsiController with an action, let's say List(). When I want to generate a link to this action using @Html.ActionLink, the resulting link does not include the locale:

@Html.ActionLink("My link", "List", "Bsi") generates the following URL http://localhost:59051/Bsi/List instead of http://localhost:59051/fr/Bsi/List.

Thanks for your time !

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