Skip to content

Commit

Permalink
Update CanonicalUrlListener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lopes-vincent authored Feb 17, 2022
1 parent c4f3140 commit 0b9824b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/CanonicalUrlListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected function getCanonicalOverride()
if (null !== $metaCanonical) {
$canonicalValues = json_decode($metaCanonical->getValue(), true);

$url = $canonicalValues[$lang->getLocale()] !== "" ?:null;
$url = $canonicalValues[$lang->getLocale()] !== "" ? $canonicalValues[$lang->getLocale()] :null;
}

// Try to get old field of BetterSeoModule
Expand Down

0 comments on commit 0b9824b

Please sign in to comment.