'Canonical URL link tag is not working for LinkedIn

LinkedIn Post inspector: https://www.linkedin.com/post-inspector/inspect/https:%2F%2Fgourav.io%2Fblog%2Fgit-cheatsheet

in page HTML Head, canonical url is <link rel="canonical" href="https://gourav.io/blog/git-cheatsheet">

enter image description here

However, On LinkedIn canonical URL is showing https://gourav.io enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source