Skip to content

Commit

Permalink
Merge mode=ContentMode into the existing query param map
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 13, 2023
1 parent ed97b1e commit a9df87f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ WHERE
<!-- if ldh:ContentMode is active but no mode param explicitly is specified, change the page's URL to reflect that -->
<xsl:when test="not(map:contains($query-params, 'mode')) and id('content-body', ixsl:page())/div[contains-token(@class, 'row-fluid')][1]/ul[contains-token(@class, 'nav-tabs')]/li[contains-token(@class, 'content-mode')][contains-token(@class, 'active')]">
<xsl:variable name="fragment" select="substring-after($href, '#')" as="xs:string"/>
<xsl:sequence select="xs:anyURI(ldh:href($ldt:base, ac:absolute-path(base-uri()), map{}, ac:build-uri(base-uri(), map{ 'mode': '&ldh;ContentMode' } ), $fragment))"/>
<xsl:sequence select="xs:anyURI(ldh:href($ldt:base, ac:absolute-path(base-uri()), map{}, ac:build-uri(base-uri(), map:merge(($query-params, map{ 'mode': '&ldh;ContentMode' } )), $fragment))"/>
</xsl:when>
<xsl:otherwise>
<xsl:sequence select="$href"/>
Expand Down

0 comments on commit a9df87f

Please sign in to comment.