summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2021-10-14 15:17:35 -0400
committerShaun McCance <shaunm@redhat.com>2021-10-14 15:17:35 -0400
commitcef8f0c8b0783abf98ba8a7c614d3254eda76ef6 (patch)
treee40773a66d02ed99abe3441fff531c2861a01e5f
parent9a03e634aeeda0011481616ae4a8e29d2b96aab4 (diff)
downloadyelp-xsl-cef8f0c8b0783abf98ba8a7c614d3254eda76ef6.tar.gz
mal2html-links: Also fix section links for stacks
-rw-r--r--xslt/mallard/html/mal2html-links.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/mallard/html/mal2html-links.xsl b/xslt/mallard/html/mal2html-links.xsl
index a5dc1e6a..ce851f4a 100644
--- a/xslt/mallard/html/mal2html-links.xsl
+++ b/xslt/mallard/html/mal2html-links.xsl
@@ -632,7 +632,7 @@ element containing $node.
<xsl:for-each select="$node/mal:section">
<xsl:call-template name="mal2html.links.ul.li">
<xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="xref" select="concat(/mal:page/@id, '#', @id)"/>
+ <xsl:with-param name="xref" select="concat(ancestor::mal:page[1]/@id, '#', @id)"/>
<xsl:with-param name="role" select="concat($role, ' section')"/>
<xsl:with-param name="nodesc" select="$nodesc"/>
</xsl:call-template>