dotnet / dotnet/aspnetcore

Equivalent to LocalRedirect in Blazor

Open
#49,628 4 comments 0 reactions 0 assignees View on GitHub
area-blazor copilot-candidate enhancement feature-blazor-navigation
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

In MVC & Razor Pages you can all `LocalRedirect()` to trigger a redirect to page in the app. This is typically used with return URLs specified in the request, so that a malicious request can't send you off to some other site.

In Blazor we have `NavigationManager.NavigateTo()`. Do we need a `NavigateToLocal()`?

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.