Dheeraj Palagiri
Dheeraj Palagiri

Reputation: 1879

Sitecore Link (Xslt) Question Mark Issue

I got some code in XSLT in my sitecore project which displays link:

<sc:link title="{sc:fld('MenuTooltip',.)}">
    <xsl:call-template name="DisplayTitle"/>
</sc:link>

This is working fine unless I got text with '?' on MenuTooltip Field in sitecore.

For example, if MenuTooltip got "Reference Centre" it's fine it generates below html

<a title="Reference Centre" href="/reference-centre">Reference Centre</a>

Perfect now the things get bad, If I got "Reference Centre?" in MenuToolTip it generates some thing like below

<a &haschildren="true" href="/reference-centre">Reference CentreReference Centre</a>

Any ideas on this?

Upvotes: 1

Views: 505

Answers (1)

Dheeraj Palagiri
Dheeraj Palagiri

Reputation: 1879

There might be two issues either you have some custom code running on sc:Link. check the below configaration in web.config

in my case i have not had any custom code and i am using Sitecore.NET 6.6.0 (rev. 130529).

So

I replaced sc:link with anchor tag:

<a href="{sc:path(.)}" title="{sc:fld('MenuTooltip',.)}">
    <xsl:call-template name="DisplayTitle"/>
</a>

Suggested by -John west

Upvotes: 2

Related Questions