fixed canonicalUrl variable error causing blank urls