Skip to content

Commit

Permalink
Use <link> for the canonical URL
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed May 17, 2022
1 parent 6f4cb03 commit d29005d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Contracts/AbstractPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function getDynamicMetadata(): array
$array = [];

if ($this->canUseCanonicalUrl()) {
$array[] = Meta::property('og:url', $this->getCanonicalUrl());
$array[] = '<link rel="canonical" href="'. $this->getCanonicalUrl().'" />';
}

return $array;
Expand Down

0 comments on commit d29005d

Please sign in to comment.