Bug 275480 - Incorrect links generated for pages with embedded underscores.
Summary: Incorrect links generated for pages with embedded underscores.
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Wolfram Schneider
URL:
Keywords:
: 275771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-12-02 10:38 UTC by Pawel Kraszewski
Modified: 2024-04-28 12:30 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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