Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
<link rel='canonical' href='<%=getCurrentAttribute('item','canonicalurl' )%>'/>
Has anyone found a rig to get the fully qualified URL when using canonical?
What I'm looking for is:
<link rel='canonical' href='http://www.christmastreeforme.com/Artificial-Christmas-Trees/Christmas-Tree-Video-Princeton-Pine'/>
Examples:
This:
<link rel="canonical" href="<%=getCurrentAttribute('item','urlcomponent','')%>"/>
Will produce:
<link rel='canonical' href='/Artificial-Christmas-Trees/Christmas-Tree-Video-Princeton-Pine'/>
This:
<link rel="canonical" href="http://www.christmastreeforme.com<%=getCurrentAttribute('item','urlcomponent','')%>"/>
Will produce:
<link rel='canonical' href='http://www.christmastreeforme.comhttp://www.christmastreeforme.com/Artificial-Christmas-Trees/Christmas-Tree-Video-Princeton-Pine'/>