Bug 275480

Summary: Incorrect links generated for pages with embedded underscores.
Product: Documentation Reporter: Pawel Kraszewski <root+FreeBSD>
Component: Manual PagesAssignee: Wolfram Schneider <wosch>
Status: Closed FIXED    
Severity: Affects Many People CC: doc, grahamperrin, jamie, unitrunker, wosch
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266336
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264661
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266406
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271479
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274699
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274434

Description Pawel Kraszewski 2023-12-02 10:38:10 UTC
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.
Comment 1 Mina Galić freebsd_triage 2023-12-15 18:24:54 UTC
*** Bug 275771 has been marked as a duplicate of this bug. ***
Comment 2 Jamie Landeg-Jones 2024-02-01 12:48:49 UTC
Duplicate of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275000