crate-docs-theme icon indicating copy to clipboard operation
crate-docs-theme copied to clipboard

Synchronize forwarding of the `/latest/` URLs

Open msbt opened this issue 3 years ago • 3 comments

Only the "reference" and "dbal" projects forward the /latest/-version URLs to a specific documentation version, on the others both can be accessed separately.

Example: https://crate.io/docs/dbal/en/latest/ forwards to https://crate.io/docs/dbal/en/2.3/

Not really an issue, but would be nice to have all the doc-repos work the same way, so either

  • forward all /latest/ links to the actual version (like https://crate.io/docs/dbal/en/latest/)
  • make both accessable (like https://crate.io/docs/jdbc/en/latest/ - but making sure that it's actually the same content)

msbt avatar Jun 27 '22 11:06 msbt

Thank you for reporting this. So, do you think we should adjust both "reference" and "dbal" projects to behave like the others?

amotl avatar Jun 27 '22 14:06 amotl

I'm not a 100% sure. Having separate pages with both, the release number and /latest might cause duplicate content warning. Maybe @michaelkremmel could chime in and give a suggestion.

msbt avatar Jun 28 '22 07:06 msbt

@amotl I had a talk with @michaelkremmel and we came to the conclusion that automated redirects from /latest/ to the corresponding versions are not really necessary. They could be accessed separately (like it's currently the case with the JDBC repo. The canonical URL already points to the /latest version anyways, so we shouldn't get penalties for duplicate content.

What's the take from others? Is there a reason why we're redirecting from latest to the version on the Reference and DBAL repos but not the others? cc @mfussenegger @seut @matkuliak

msbt avatar Aug 11 '22 11:08 msbt

Hi again. Has this been fixed by this other patch?

  • https://github.com/crate/infrastructure/pull/3152

Do you think we can close the issue, or are there some leftovers to consider?

amotl avatar Jun 05 '24 11:06 amotl

@amotl yes, I think we removed all redirects to versioned docs, thanks

msbt avatar Jun 06 '24 13:06 msbt