Bug 274434 - HTMLDOCS for CXGBE(4) has an incorrect link to ng_ether(4) in all versions from 9.0
Summary: HTMLDOCS for CXGBE(4) has an incorrect link to ng_ether(4) in all versions f...
Status: Closed DUPLICATE of bug 275000
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:
Depends on:
Blocks:
 
Reported: 2023-10-12 17:18 UTC by Brett Farnam
Modified: 2024-04-28 12:33 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brett Farnam 2023-10-12 17:18:12 UTC
HTMLDOCS for CXGBE(4) has an incorrect link to  ng_ether(4) in all versions from 9.0

When viewing the CXGBE(4) HTMLDOCS, under the SEE ALSO section, the link to NG_ETHER(4) is missing the 'NG_' and tries to link to ETHER(4) which results in a 'Sorry, no data found for `ether(4)'. Please try a keyword search.'

https://man.freebsd.org/cgi/man.cgi?query=cxgbe&apropos=0&sektion=4&manpath=FreeBSD+9.0-RELEASE+and+Ports&arch=default&format=html#SEE_ALSO
Comment 1 Navdeep Parhar freebsd_committer freebsd_triage 2024-01-19 18:32:19 UTC
This is not cxgbe(4) specific -- any man page with a cross reference that has an underscore in its name seems to be this way.  For example, both the ng_* entries in the SEE ALSO section of ng_vlan(4) have the same problem.

https://man.freebsd.org/cgi/man.cgi?query=ng_vlan&apropos=0&sektion=0&manpath=FreeBSD+9.0-RELEASE+and+Ports&arch=default&format=html#end
Comment 2 Chris Davidson 2024-02-01 04:43:05 UTC
After some investigation, the html file is generating an incorrect link.

If the manual page has an underscore in the filename, this structure is created:
<i> <i> _ <a href=><i></></a>

If the manual page does not have an underscore in the filename, this structure is created:
<a href><i></i></a>

Snippet of the webpage source for context:

<a name="SEE_ALSO" href="#end"><b>SEE ALSO</b></a>
       <a href="/cgi/man.cgi?query=netgraph&amp;sektion=4&amp;apropos=0&amp;manpath=FreeBSD+9.0-RELEASE+and+Ports"><i>netgraph</i>(4)</a>, <i>ng</i>_<a href="/cgi/man.cgi?query=eiface&amp;sektion=4&amp;apropos=0&amp;manpath=FreeBSD+9.0-RELEASE+and+Ports"><i>eiface</i>(4)</a>, <i>ng</i>_<a href="/cgi/man.cgi?query=ether&amp;sektion=4&amp;apropos=0&amp;manpath=FreeBSD+9.0-RELEASE+and+Ports"><i>ether</i>(4)</a>, <a href="/cgi/man.cgi?query=ngctl&amp;sektion=8&amp;apropos=0&amp;manpath=FreeBSD+9.0-RELEASE+and+Ports"><i>ngctl</i>(8)</a>, <a href="/cgi/man.cgi?query=nghook&amp;sektion=8&amp;apropos=0&amp;manpath=FreeBSD+9.0-RELEASE+and+Ports"><i>nghook</i>(8)</a>
Comment 3 Wolfram Schneider freebsd_committer freebsd_triage 2024-04-28 12:33:06 UTC

*** This bug has been marked as a duplicate of bug 275000 ***