Skip to content

Commit

Permalink
fix: duplicate canonical
Browse files Browse the repository at this point in the history
added hid to the canonical item to prevent duplication of the tag on

Closes #2
  • Loading branch information
nickfrosty committed Dec 5, 2021
1 parent a8bf4c0 commit 3457744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const createCanonical = (options, path) => {
}

return [
{rel: 'canonical', href: canonicalUrl}
{hid: 'canonical', rel: 'canonical', href: canonicalUrl}
]
}

Expand Down

0 comments on commit 3457744

Please sign in to comment.