stk:head.create-canonical-url(function)

Creates a canonical URL for the current page (for SEO). URL parameters specified in site.xml will be filtered from the current URL to generate a canonical URL.

xs:stringstk:head.create-canonical-url

Examples

Input

<link rel="canonical" href="{stk:head.create-canonical-url()}"/>

Site.xml configuration example

Input

<config>
    <parameters>        
        <parameter path="/" name="canonical-filter">index,count</parameter>
    </parameters>
</config>