commercialhaskell/stackage-server

Easy navigation from module page back to package page

brandon-leapyear opened this issue · 2 comments

It used to be the case that you could:

  1. Go to a package page (e.g. https://www.stackage.org/lts-14.19/package/tasty-1.2.3)
  2. Click on a module (e.g. https://www.stackage.org/haddock/lts-14.19/tasty-1.2.3/Test-Tasty.html)
  3. Click on "Contents" in the top right
  4. Be back on the package page

This is not the case anymore, since LTS 15, I assume due to the upgrade to GHC 8.8. Clicking on "Contents" now takes you to the index.html Haddock page instead of the package page. Given that the above steps work in hackage.haskell.org, I would expect it to be the case on stackage.org, but if the change was intentional, it would be nice to have some other link available to easily navigate back to the package page

juhp commented

You are right - I am not sure what caused this.
My first assumption would be maybe something changed in haddock.
I dunno if upgrading haddock would get the older behavior back
or if some change or configuration is needed??

Personally I just go Back in my browser though that only works with step 1 - I agree the old way was useful.