Skip to content

Commit

Permalink
ac:build-uri() arg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 16, 2023
1 parent f35ac10 commit 600673c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,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:merge(($query-params, map{ 'mode': '&ldh;ContentMode' } ))), $fragment))"/>
<xsl:sequence select="xs:anyURI(ldh:href($ldt:base, ac:absolute-path(base-uri()), map{}, ac:build-uri(ac:absolute-path(base-uri()), map:merge(($query-params, map{ 'mode': '&ldh;ContentMode' } ))), $fragment))"/>
</xsl:when>
<xsl:otherwise>
<xsl:sequence select="$href"/>
Expand All @@ -939,7 +939,7 @@ WHERE

<xsl:call-template name="ldh:PostHTMLDocumentLoad">
<xsl:with-param name="href" select="$href"/>
</xsl:call-template>-params()?graph
</xsl:call-template>

<xsl:variable name="graph" select="if (exists(ixsl:query-params()?graph)) then xs:anyURI(ixsl:query-params()?graph[1]) else ac:absolute-path($uri)" as="xs:anyURI"/>
<xsl:message>
Expand Down

0 comments on commit 600673c

Please sign in to comment.