ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
753 stars 137 forks source link

Body only page when clicking package sometimes #217

Closed FPtje closed 7 years ago

FPtje commented 7 years ago

How to reproduce

  1. Open http://hoogle.haskell.org in a NEW tab (that step is important)
  2. Type something in the search bar
  3. Do NOT press search, the Return key or reload the page
  4. Click some package on the left. Clicking the little - or + also works
  5. Find that the link you clicked refers to http://hoogle.haskell.org/?=<whatever>&mode=body
  6. Enjoy a Hoogle page without stylesheets

The bug seems to be in the system that loads search results as you are typing. After all, that's when the bug happens. As soon as you press the search button, press enter or reload the page, the &mode=body disappears from the links.

ndmitchell commented 7 years ago

Ahha! I've seen this bug before, but never managed to come up with a reproducible case, so have been unable to investigate it properly. Thanks for tracking down the cases, hopefully easy to fix it now.

ndmitchell commented 7 years ago

Fixed!