You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A block of html is stored within a property on a SharePoint item, that is loaded into the search results via a Refineable String that is entered into a layout slot. The html going into the slot is pulled in completely, meaning when viewing the html into debug mode, all of the html is full and complete. However, when that is referenced by getSummary (slot item @root.slots.RelatedContent)}} within a custom results template. Everything is rendering correctly, with the correct formatting and spacing, with one specific exception: URLs that contain four or more dashes have the text next to those first four removed. Links with three dashes are unaffected, those with five or more have the first four removed but the remainder are unaffected.
Hi @AnAriaEternal. you don't need to use the getSummary helper function. This one is only relevant when you use the default property HitHighlightedSummary. To display your HTML just use the triple curly braces syntax like this:
Version used
4.7
Describe the bug
A block of html is stored within a property on a SharePoint item, that is loaded into the search results via a Refineable String that is entered into a layout slot. The html going into the slot is pulled in completely, meaning when viewing the html into debug mode, all of the html is full and complete. However, when that is referenced by getSummary (slot item @root.slots.RelatedContent)}} within a custom results template. Everything is rendering correctly, with the correct formatting and spacing, with one specific exception: URLs that contain four or more dashes have the text next to those first four removed. Links with three dashes are unaffected, those with five or more have the first four removed but the remainder are unaffected.
Examples:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The links should all render fully, without url alteration.
Screenshots
Desktop (please complete the following information):
Additional context
This also applies to other link formats with dashes (such as Microsoft site links.)
The text was updated successfully, but these errors were encountered: