Method: getCanonicalURL()

Return the full canonical URL (including the primary web domain) for this document. Primarily for use in a <link rel="canonical" href="[canonicalurl]" /> tag for SEO purposes.

Returns:

STRING

Example:

$this->document->getCanonicalURL();

Example 2:

<link rel="canonical" href="<?php echo htmlspecialchars($this->document->getCanonicalURL()) ?>" />

Contact Us

Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: info@dotadmin.com