Try our conversational search powered by Generative AI!

TagHelper should omit html tag in viewmode when link property is empty

Fixed in

EPiServer.CMS.Core 12.21.3

(Or a related package)

Created

Jan 04, 2024

Updated

May 16, 2024

Area

CMS Core

State

Closed, Fixed and tested


Description

Fixed an issue with tag helpers where even if the link property was null, <ul> html tag was included in the view mode rendering.

Previous output (view mode):

<div>   
   <ul></ul>
</div>

Current output (view mode):

<div>
</div>

This applies to ContentReference, ContentReferenceList, LinkItem, LinkItemCollection, and URL property.