Skip to content

Commit e957c51

Browse files
committed
Fix URL link mechanism for Red Hat Errata
Previously, public description of each erratum was available under https://rhn.redhat.com/errata/ at some point in time this has changed to https://access.redhat.com/errata/ and since not all links redirect properly from old to new, we have to fix OpenSCAP end as well. This enables people reviewing XCCDF policy guide or XCCDF result report to click on RH[SBE]A-YYYY-ABCD acronym and be redirected to public description of the given erratum.
1 parent 6cd7d2d commit e957c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xsl/xccdf-share.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ Authors:
5555
<xsl:when test="starts-with(@system, 'http://cve.mitre.org')">
5656
<a href="{concat('https://cve.mitre.org/cgi-bin/cvename.cgi?name=', text())}"><abbr title="{concat(@system, concat(': ', text()))}"><xsl:value-of select="text()"/></abbr></a>
5757
</xsl:when>
58-
<xsl:when test="starts-with(@system, 'https://rhn.redhat.com/errata')">
59-
<a href="{concat('https://rhn.redhat.com/errata/', concat(text(), '.html'))}"><abbr title="{concat(@system, concat(': ', text()))}"><xsl:value-of select="text()"/></abbr></a>
58+
<xsl:when test="starts-with(@system, 'https://access.redhat.com/errata')">
59+
<a href="{concat('https://access.redhat.com/errata/', concat(text(), '.html'))}"><abbr title="{concat(@system, concat(': ', text()))}"><xsl:value-of select="text()"/></abbr></a>
6060
</xsl:when>
6161
<xsl:otherwise>
6262
<abbr title="{concat(@system, concat(': ', text()))}"><xsl:value-of select="text()"/></abbr>

0 commit comments

Comments
 (0)