Closed
Description
Routing in .net (starting with core and at least up to 7) does not work for strings, nor is there a workaround possible.
The problem is that route parameters are half URL decoded by the middleware (Yes halve). So unless you know in advance what all possible routing values will be, routing WILL NOT and CAN NOT reliably work.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 8ee6ad2f-1667-8d5c-1f36-9d0511e3720f
- Version Independent ID: 7838ccec-c8e8-9baa-2b3e-220b2af5fc58
- Content: Routing to controller actions in ASP.NET Core
- Content Source: aspnetcore/mvc/controllers/routing.md
- Product: aspnet-core
- Technology: aspnetcore-mvc
- GitHub Login: @Rick-Anderson
- Microsoft Alias: riande