Html.DisplayFor should render Uri as hyperlink
Open
area-mvc
breaking-change
enhancement
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
### Is your feature request related to a problem? Please describe.
I am trying to display an [Uri](https://docs.microsoft.com/en-us/dotnet/api/system.uri) property as a hyperlink but [DisplayFor](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.viewfeatures.htmlhelper-1.displayfor) with no template does not display it as a hyperlink.
### Describe the solution you'd like
It should not be necessary to declare the [UrlAttribute](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.urlattribute) on the property.
Contributor guide
Assessment
This issue has not been assessed yet.