Display default page or redirect if package is not found in snapshot
Closed this issue · 4 comments
v0d1ch commented
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=
snoyberg commented
Can you give an example URL? The package pages themselves already redirect.
…On Thu, Apr 12, 2018, 10:47 AM Sasa Bogicevic ***@***.***> wrote:
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=
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#255>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBBzcJbipEb3jCHErwih7Lx3zdb8p_ks5tnwaagaJpZM4TRS8o>
.
v0d1ch commented
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 ...
snoyberg commented
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.