Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
<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'/>