Hi,
I am trying to compare two URLs and find if current page URL contains the link entered in DCR, but the check is always returning false.
When i print the values of below variable it shows this but returns false, not sure why
<xsl:variable name="URL">$PAGE_LINK[.]</xsl:variable>
<xsl:variable name="Link"><xsl:value-of select="Nav_Link"/></xsl:variable>
Values when printed -
URL -- /en_TH/rop/about.page?
Link - sites/en_TH/rop/about.page
Below check applied which is returning false always
<xsl:if test="contains($URL,normalize-space(substring-after($Link,'sites/')))">
I tried hardcoding the current URL value then it returned correct answer, so seems someting wrong i am doing with PAGE_LINK
Teamsite Version - 7.3.2.0.0
Thanks,
Antima