Skip to content

Adding feature to Router for custom language URL #40736

@emir3100

Description

@emir3100

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Im using blazor server and when I am trying to implement a language url to my website, I run into problems with the router component.

I tried to modify the current router but many of the classes are protected and inaccessible.

https://example.com/home --> https://example.com/en/home
My desired outcome is to use @page "/home" on the pages without adding the language code.

Describe the solution you'd like

Either implement a feature to easier create language URL with the router component or make it easier to modify the current router.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:2Work that is important, but not critical for the releasearea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-routingFeatures related to routing in Blazor applicationsfeature-blazor-server

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions