Debian / debiman

debiman generates a static manpage HTML repository out of a Debian archive
Apache License 2.0
189 stars 46 forks source link

search when viewing a manpage should search within the same distribution as current manpage #25

Closed fsateler closed 7 years ago

fsateler commented 7 years ago

Say I am looking at https://manpages.debian.org/unstable/systemd/systemd.directives.7.en.html, that is the unstable version of a manpage. Then I decide to search for systemctl. The result is https://manpages.debian.org/jessie/systemd/systemctl.1.en.html , the stable version. I think the result should come (if possible) from the same distribution.

stapelberg commented 7 years ago

Fair point! We could totally use the referrer to see where people are coming from and use that to fill in the blanks.

stapelberg commented 7 years ago

It has been pointed out that a cleaner solution is to include the suite in the form, because referers make it harder to cache the redirects. I’ll look into that.

fsateler commented 7 years ago

@stapelberg indeed, adding the parameter to the form sounds like a better solution. Thanks!

stapelberg commented 7 years ago

This will be live with the next re-render (within the next few days).

fsateler commented 7 years ago

Thanks!!

Saludos, Felipe Sateler

On Jan 21, 2017 06:21, "Michael Stapelberg" notifications@github.com wrote:

This will be live with the next re-render (within the next few days).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Debian/debiman/issues/25#issuecomment-274250325, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQsHa7o6MjY9NyrM9WsvHq6IB9G77aLks5rUc4ogaJpZM4LnXAL .