[Bug 275480] Incorrect links generated for pages with embedded underscores.

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 02 Dec 2023 10:38:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275480

            Bug ID: 275480
           Summary: Incorrect links generated for pages with embedded
                    underscores.
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: root+FreeBSD@linuxpedia.pl
                CC: doc@FreeBSD.org

Man pages at https://man.freebsd.org generate broken links for items that have
underscores embedded in their names (CMSG_DATA, if_ipsec, ipsec_strerror, all
Netgraph pages of ng_* and so on).

For example:

https://man.freebsd.org/cgi/man.cgi?query=ipsec&sektion=4&format=html has
broken link to ipsec_set_policy(3)

The actual link is to
https://man.freebsd.org/cgi/man.cgi?query=policy&sektion=3&apropos=0&manpath=FreeBSD+14.0-RELEASE+and+Ports
, that is to the part of the name that is after the last "_".


The expected link is be to the
https://man.freebsd.org/cgi/man.cgi?query=ipsec_set_policy&sektion=3&apropos=0&manpath=FreeBSD+14.0-RELEASE+and+Ports


The bug also manifests visually, with only part of the name
underscored/linkified, both in "SEE ALSO" section and for links within the man
body.

-- 
You are receiving this mail because:
You are the assignee for the bug.