Skip to content

Commit

Permalink
Fixing default ContentMode setting
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 9, 2023
1 parent 7215a25 commit 91b26f3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -936,9 +936,10 @@ WHERE
<xsl:message>AAA ldh:base-uri(.): <xsl:value-of select="ldh:base-uri(.)"/></xsl:message>
<xsl:if test="$push-state">
<xsl:variable name="href" as="xs:anyURI">
<xsl:variable name="query-params" select="if (contains(ldh:base-uri(.), '?')) then ldh:parse-query-params(substring-after(ldh:base-uri(.), '?')) else map{}" as="map(xs:string, xs:string*)"/>
<xsl:choose>
<!-- if ldh:ContentMode is active, change the page's URL to reflect that -->
<xsl:when test="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')]">
<!-- if ldh:ContentMode is active as the default mode (no mode param explicitly specified), change the page's URL to reflect that -->
<xsl:when test="not(map:contains($query-params, 'mode'))">
<xsl:message>BBB ldh:base-uri(.): <xsl:value-of select="ldh:base-uri(.)"/></xsl:message>

<xsl:variable name="fragment" select="substring-after($href, '#')" as="xs:string"/>
Expand Down

0 comments on commit 91b26f3

Please sign in to comment.