dotnet/aspnetcore
GitHub で見るNavigationException doesn't have a useful message.
Open
#51,787 opened on 2023年10月31日
area-blazorenhancementfeature-blazor-navigationhelp wanted
Repository metrics
- Stars
- (37,933 stars)
- PR merge metrics
- (平均マージ 16d 9h) (30d で 258 merged PRs)
説明
creates an exception like this
with the URL in the Location field.
Ideally it should have a useful message that includes the URI, eg., "Could not navigate to https://localhost:7298/item/99"
the problem is that NavigationException is not overriding Message and ToString https://github.com/dotnet/aspnetcore/blob/d8a3aa870862d01a8b3a3235f8dd7fc951dd8ff4/src/Components/Components/src/NavigationException.cs#L9
If we want to keep the URL out of the message for security reasons, it should at least have a message like "Could not navigate to the URL".