[openstreetmap/openstreetmap-website] Missing cannonical URL for search engines on blog index pages (#2851)

Tobias notifications at github.com
Fri Sep 25 20:18:34 UTC 2020


Hi, unfortunately I don't have the time to fully debug this, but I will post my findings and maybe someone can pick it up.

**Issue:**

I was looking for this blog post https://www.openstreetmap.org/user/Supaplex030/diary/393423 via the Google Image Search https://www.google.com/search?q=supaplex+parkpl%C3%A4tze+openstreetmap&sxsrf=ALeKk02JDhRGUouiU8tP9ztjwoVIuWM0tg:1601064638585&source=lnms&tbm=isch&sa=X&ved=2ahUKEwi8ta3IjoXsAhWC_KQKHd9vBt8Q_AUoAXoECAwQAw&biw=1403&bih=798 which shows the image of the blogpost that I am looking for. 

But: The search links me to this page https://blogs.openstreetmap.org/?viewType=Print&viewClass=Print

I don't know what this page is, but its not the blogpost details page and it looks like some special case page that should not be in the index.

**Thoughts:**

As I said, I did not debug further, but IMO the ideal case would be:

1. make sure google only sees the show-, not the index-views:

  * IMO the best practice would be, to have the blog-index pages on `<meta name="robots" content="follow,noindex">`
  * Only the show-pages should be `<meta name="robots" content="follow,index">` (which is the default)

2. make sure google understands the relation between outputs that show the same content and only has the primary output in the index:

  * All non-primary-output formats, should have a `<link rel="canonical" href="https://example.com/kleider/gruene-kleider"/>` to the primary output format
https://support.google.com/webmasters/answer/139066?hl=de

Maybe https://search.google.com/search-console can help understanding an debugging this.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2851
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200925/b26ad534/attachment.htm>


More information about the rails-dev mailing list