Minor Bug Report: More Content Widget - User Bio Link Doesn't Resolve

In 12.0.1.15778, the More Content widget when set to users and the user displays a bio, the existing code (in User.vm) reads:

<a href="$core_v2_encoding.HtmlAttributeEncode($item.Content.Url)" class="internal-link view-full-post navigable">
	<div class="content">$!core_v2_language.Truncate($!item.User.Bio(), 200, '...')</div>
</a>

Which returns "$core_v2_encoding.HtmlAttributeEncode($item.Content.Url)" as the URL for the user and errors out.

Easy solution:

Match the URL to the User's Profile URL instead.

<a href="$core_v2_encoding.HtmlAttributeEncode($item.User.ProfileUrl)" class="internal-link view-full-post navigable">
	<div class="content">$!core_v2_language.Truncate($!item.User.Bio(), 200, '...')</div>
</a>    



add reference to user.vm as location of code within widget
[edited by: starksk at 7:32 PM (GMT 0) on Thu, Jun 24 2021]
Parents Reply Children
No Data