Bug 260857 - Apparent duplication of a trio of search engines for FreeBSD manual pages
Summary: Apparent duplication of a trio of search engines for FreeBSD manual pages
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Website (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Wolfram Schneider
URL: https://www.freebsd.org/
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-01 09:30 UTC by Graham Perrin
Modified: 2023-01-08 18:51 UTC (History)
2 users (show)

See Also:


Attachments
Screenshot: the two trios of search engines with FreeBSD icons (21.35 KB, image/png)
2022-01-01 09:30 UTC, Graham Perrin
no flags Details
Screenshot: the address bar context menu at <https://www.freebsd.org/> (220.08 KB, image/png)
2022-01-02 18:28 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2022-01-01 09:30:56 UTC
Created attachment 230601 [details]
Screenshot: the two trios of search engines with FreeBSD icons

At e.g. <https://www.freebsd.org/> I'm invited to add three search engines, for manual pages, which I recently added. 

Each item in the more recent trio has a slightly different name from the item that was previously added, but (at a glance) the purposes are the same. 

I assume that in my case, the originally added trio were found in the <https://www.freebsd.org/cgi/man.cgi> area. 

Is it possible to avoid the apparent duplication? 

If not, or if it's unreasonably difficult to fix, close this (wontfix). 

Thanks.
Comment 1 Pau Amma 2022-01-01 15:01:43 UTC
(In reply to Graham Perrin from comment #0)

I can see something like the offer to add search engines you mentioned above by visiting https://www.freebsd.org/ in Firefox and clicking the magnifying glass at the left of the search bar. This opens a dropdown showing 5 mini-icons of the FreeBSD logo with a green + superimposed on the right horn, reading in order:
Add "FreeBSD man pages" (pointing to https://www.freebsd.org/opensearch/man.xml)
Add "FreeBSD + ports man pages" (pointing to https://www.freebsd.org/opensearch/man-freebsd-release-ports.xml)
Add "FreeBSD Ports and Packages Collection" (pointing to https://www.freebsd.org/opensearch/ports.xml)
Add "FreeBSD Mailing List Message-ID Search" (pointing to https://www.freebsd.org/opensearch/message-id.xml)
Add "FreeBSD Mailing List Search by MarkMail" (pointing to https://www.freebsd.org/opensearch/markmail.xml),

When on https://www.freebsd.org/cgi/man.cgi, I only see the first 2 offered.

Is that the same thing you're referring to?

Looking at your screenshot, I wonder whether the ones without the + are ones you already added (from whichever version of which FreeBSD page) and the ones with the + are offers to add new or renamed ones. Could you check which URL each of the 6 you see uses? I could find that for the +'d ones by hovering over each with my mouse.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-01-01 17:24:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/doc/commit/?id=515c1e6d510db2084745df39367bfd95657bf359

commit 515c1e6d510db2084745df39367bfd95657bf359
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2022-01-01 17:18:55 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2022-01-01 17:18:55 +0000

    sync opensearch title description: Manpages -> Manual Pages

    This will hopefully fix the issue with duplicated search engine suggestions
    PR:             260857

 website/content/en/cgi/man.cgi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-01-02 18:15:38 UTC
Thanks to both of you, sorry I could not respond sooner. (Attention diverted elsewhere.)
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-01-02 18:28:49 UTC
Created attachment 230633 [details]
Screenshot: the address bar context menu at <https://www.freebsd.org/>

Incidentally, testing with Firefox 95.0.2 in safe mode, I find (at the time of writing): 

* two search engines available, with and without the context menu approach, 
  at <https://www.freebsd.org/cgi/man.cgi>

* three engines if I (lazily) allow the drop-down to make the offer 
  at <https://www.freebsd.org/>

* five engines if I use the address bar context menu 
  at <https://www.freebsd.org/> – screenshot attached.
Comment 5 Graham Perrin freebsd_committer freebsd_triage 2022-01-02 23:42:27 UTC
FreeBSD Manual Pages, 
FreeBSD + Ports Manual Pages
============================

If the former is intended to exclude pages for ports: as far as I can tell, it does not. Seeking something that is not (yet) in base

    gitup

finds its page at 
<https://www.freebsd.org/cgi/man.cgi?query=gitup&sourceid=opensearch>

Compare with the result for the latter engine: 
<https://www.freebsd.org/cgi/man.cgi?manpath=freebsd-release-ports&query=gitup&sourceid=opensearch>

----

If 'FreeBSD Manual Pages' is intended to exclude pages for ports, then the result should, I suspect, be more like this: 

<https://www.freebsd.org/cgi/man.cgi?manpath=FreeBSD&query=gitup&sourceid=opensearch>

– which currently results in selection of the 'FreeBSD 13.0-RELEASE' menu option.

NB the    manpath=FreeBSD    part of the URL.

Thanks
Comment 6 Wolfram Schneider freebsd_committer freebsd_triage 2023-01-08 18:51:14 UTC
I hope the issues are now fixed.