Skip to content

Html.DisplayFor should render Uri as hyperlink #38821

Open
@yecril71pl

Description

@yecril71pl

Is your feature request related to a problem? Please describe.

I am trying to display an Uri property as a hyperlink but 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 on the property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbreaking-changeThis issue / pr will introduce a breaking change, when resolved / merged.enhancementThis issue represents an ask for new feature or an enhancement to an existing one

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions