Change function from addHeadLink to setCanonicalUrl
Removed htmlspecialchars, no string used