dotnet / dotnet/aspnetcore

Adding feature to Router for custom language URL

Open
#40,736 3 comments 0 reactions 0 assignees View on GitHub
area-blazor enhancement feature-blazor-routing feature-blazor-server Priority:2
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.