Can I Omit "og:url" When Using Link Rel="canonical"
When setting up a new webpage and to prevent duplicate content issues on search engines, I am using the canonical tag
<link rel="canonical" href="https://example.com/slug" />.
I came across of the open graph protocol to improve the experience when sharing the webpage on social media.
In my case I am planning to use canonical to eliminate duplicates between http/https, non-www/www or remove url parameters such as
For this case, it looks like the canonical tag and the open graph metadata
og:url would do the same function. Should I include both or could I safely omit the
Thank you in advance
You should use both! The reason is that
og:url is only used by social media bots (Facebook, Twitter, LinkedIn), but search engine bots like Google bot will look for
rel="canonical" when indexing your content.
- → October CMS create a multi select Form field
- → How to update data attribute on Ajax complete
- → laravel blade templating error
- → should I choose reactjs+f7 or f7+vue.js?
- → How to dynamically add class to parent div of focused input field?
- → Setting the maxlength of text in an element that is displayed
- → Expanding search bar not expanding before search
- → Get the calling element with vue.js
- → Blade: how to include a section in one page but not in another
- → How to print/log reactjs rendered dom?
- → how to write react component to construct HTML DOM