Skip to content

Commit

Permalink
Also allow http links to legislation
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-dxw committed Nov 27, 2023
1 parent cea5171 commit 2d919d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/ml-modules/root/judgments/xslts/accessible-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<xsl:when test="starts-with($href, 'https://www.legislation.gov.uk/')">
<xsl:sequence select="true()" />
</xsl:when>
<xsl:when test="starts-with($href, 'http://www.legislation.gov.uk/')">
<xsl:sequence select="true()" />
</xsl:when>
<xsl:when test="starts-with($href, 'https://caselaw.nationalarchives.gov.uk/')">
<xsl:variable name="components" as="xs:string*" select="tokenize(substring-after($href, 'https://caselaw.nationalarchives.gov.uk/'), '/')" />
<xsl:choose>
Expand Down

0 comments on commit 2d919d8

Please sign in to comment.