rails icon indicating copy to clipboard operation
rails copied to clipboard

Google search links to old API docs

Open abraham opened this issue 1 year ago • 2 comments

Steps to reproduce

  1. Search Google for a Rails API https://www.google.com/search?q=rails+update_all
  2. Follow link for "ActiveRecord::Relation - Rails API"

Expected behavior

Find documentation for the latest version of Rails. Currently 7.0.3.1.

https://api.rubyonrails.org/classes/ActiveRecord/Relation.html

Actual behavior

Find documentation for the the very old version of 3.2.3.

https://api.rubyonrails.org/v3.2.3/classes/ActiveRecord/Relation.html

abraham avatar Aug 24 '22 14:08 abraham

This could probably be fixed by setting a canonical tag on all the old versions.

<link rel="canonical" href="https://api.rubyonrails.org/classes/ActiveRecord/Relation.html" />

abraham avatar Aug 24 '22 14:08 abraham

Can I take this up? First-time contributor here :)

bijoysijo avatar Sep 26 '22 00:09 bijoysijo

where to find the source for the older version

salty-ivy avatar Oct 08 '22 08:10 salty-ivy