DEV Community

Discussion on: A Primer on SEO

sinewalker profile image
Mike Lockhart

Ah right. Yeah this page has:

<link rel="canonical" href="" />

And I was thinking "Oh noes! Did the DEV editor put that in and overwrite her canonical link? How will I do this?". But, the post has this in its header:

<link rel="canonical" href="" />

Which is what we should probably all do, for our cross-posts on, to link them back to the original on our own site.

So, I guess the question now is: when I cross-post to (and I have a few that I'd like to), how do I set the canonical URL back to my original blog post?

Turns out: it's super easy: you press that "WRITE A POST" button in the top right corner there, and paste your Markdown. Then you press the ellipsis button (...) on the editor's top-right corner, and there's a field "Canonical URL" for you to put in your original URL!