This Umbraco extension automatically creates canonical meta tags, if
the url used is not the one found by Umbracos NiceUrl. Especially
useful if you use umbracoUrlAlias or umbracoUseDirectoryUrls
To use the extension, download the package and install it to your Umbraco solution. When done, just add the [DI]Canonical macro to your templates. If you have a page, that uses that template and uses umbracoUrlAlias and the user/serch enginge came via that link, the canonical meta tag will be present in the header.
NOTE: Your head tag must have runat="server"