DEV Community

Cover image for How To Add Canonical Links on

Posted on • Updated on • Originally published at

How To Add Canonical Links on

If you're using Rich + Markdown, canonical links need to be added differently.

Click on the engine icon at the bottom of the post.


A small window should pop-up:


Now you can add the canonical link.

You only need to add the link address like this:
Enter fullscreen mode Exit fullscreen mode

And remove the rest.

To find the canonical path, do the following:

  • Press F12
  • CTRL + F and search for "canonical"

You should see something such as:

<link rel="canonical" href="">
Enter fullscreen mode Exit fullscreen mode

I hope this helps!

Top comments (3)

skylerdevops profile image

Is that related to cross posting? (I'm thinking about Hashnode, and the fact you post there first, and it cross post here) :)

maddy profile image

Hey Skyler!

Yes, exactly.

Whenever you cross post your articles, use canonical links to avoid hurting SEO (I was suggested this and decided to make an article as it took me some time to find the place to insert the linkπŸ˜†)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.