Fix supporter referal links
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
delliott 2024-08-29 14:16:21 +02:00
parent 0edc6cfc57
commit d2f5353832
Signed by: delliott
SSH Key Fingerprint: SHA256:h5IC6Ec/o6ypmpM7ZdRqULGyG8dz4Jr5K192BAWAjoo

View File

@ -12,8 +12,8 @@
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">referrer</xsl:attribute>
<xsl:attribute name="value">
<xsl:text>https://fsfe.org</xsl:text>
<xsl:value-of select="/buildinfo/@filename"/>
<xsl:text>https://fsfe.org/</xsl:text>
<xsl:value-of select="substring-after(substring-after(/buildinfo/@filename,'/'),'/')"/>
<xsl:text>.html</xsl:text>
</xsl:attribute>
</xsl:element>
@ -23,8 +23,8 @@
<xsl:template match="fsfe-cd-donate-link">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:text>https://my.fsfe.org/donate?referrer=https://fsfe.org</xsl:text>
<xsl:value-of select="/buildinfo/@filename"/>
<xsl:text>https://my.fsfe.org/donate?referrer=https://fsfe.org/</xsl:text>
<xsl:value-of select="substring-after(substring-after(/buildinfo/@filename,'/'),'/')"/>
<xsl:text>.html</xsl:text>
</xsl:attribute>
<xsl:apply-templates select="@*|node()"/>