dotnet / dotnet/aspnetcore

Allow the full controller/action name in RedirectToAction

Open
#23,674 4 comments 7 reactions 0 assignees View on GitHub
affected-few area-mvc enhancement feature-mvc-execution-pipeline severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

The overloads of RedirectToAction method which take a controller string only works when the controller name is sent without the "Controller" suffix (works with "Home" but not with "HomeController"). It'd be neat if it works both cases to allow the usage of `nameof` operator.

Same goes with action names but with the "Async" suffix".

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.