Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google search results link to legacy date-fns versions #146

Open
raerpo opened this issue Feb 6, 2020 · 2 comments
Open

Google search results link to legacy date-fns versions #146

raerpo opened this issue Feb 6, 2020 · 2 comments

Comments

@raerpo
Copy link

raerpo commented Feb 6, 2020

Hi everybody! thank you for the great work.

A regular workflow that I have when I don't remember something in date-fns is searching it in google and clicking on the result that takes me to the oficial documentation. The problem is that those results, in almost all cases, take me to the old version of the library and I ended up using deprecated methods.

I'll give an example.

I search for date fns format and i get this result:
Screen Shot 2020-02-06 at 11 20 32 AM

I click the result and I arrive at the documentation without any warning or sign that I'm looking at a old version (1.30 in this case)

Screen Shot 2020-02-06 at 11 20 49 AM

Some people will start reading this and will get unexpected errors and will get frustrated by not getting something working even thou the are taking it directly from the documentation.

Proposed solution

I guess there are two options here.

  1. Show a BIG message indicating that they are arriving at legacy docs page and they should check the version that they are using and move to that version instead.

  2. Make a redirect to the latest version as soon as they arrived at the docs.

I like the first option the better because is less intrusive and also the second option could damage the SEO (not sure about it)

Either way, I would like to contribute with a PR once a decision has been made.

Thanks!

@thgh
Copy link

thgh commented Apr 7, 2021

Just wanted to mention that Google doesn't seem to index specific doc pages anymore, it only points to these:

@tan75 tan75 added this to Should in date-fns development Jul 25, 2021
@tan75
Copy link
Contributor

tan75 commented Jul 25, 2021

Task:
Add a bigger "this is not the latest version" banner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

4 participants