commercialhaskell/stackage-server

Display default page or redirect if package is not found in snapshot

Closed this issue · 4 comments

I was wondering if there is a way to redirect to last snapshot in which the package exists if it is not found in the current one or display some default page instead of:

NoSuchKeyThe specified key does not exist.lts-11.1/esqueleto-2.5.3/Database-Esqueleto.html4829CBF78F2FCAB4tCxWv4D6xVNSRLd/HR64pKESkZBM1HEkT0bJU04Zqe3+i1WIOigy7za5NQ1TUjcEu2x5PaSEv8M=

For example esqueleto in not on 11.1
https://www.stackage.org/haddock/lts-11.1/esqueleto-2.5.3/Database-Esqueleto.html
You can google for something in esqeleto package and end up clicking on a link that takes you to stackage which gives you that NoSuchKey ...

Can you give an example of a page that has such a link to missing docs? It seems strange that such a URL ever would have been generated in the first place.

Oh man...just realized I have some browser extension on that redirects to stackage 🤦‍♂️