ndmitchell / hoogle

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

Added `--home` flag to `server` command #195

Closed taktoa closed 7 years ago

taktoa commented 7 years ago

This adds a new --home flag, which allows you to specify the URL linked to by the Hoogle logo in the upper left of every page.

This ameliorates the following frustrating scenario:

  1. Launch hoogle -p 8080 --local (or similar)
  2. Navigate to localhost:8080
  3. Search for foo with your local Hoogle instance
  4. You found what you want, so you instinctively click the Hoogle logo in the upper left to get back to the home page.
  5. Now you're at hoogle.haskell.org rather than localhost:8080
  6. Either you notice, in which case you have to navigate back to your local instance, or you don't notice, in which case you get very confused as none of your local packages show up in search results.
ndmitchell commented 7 years ago

Thanks for the patch - makes sense. All merged.