Compare commits

...

2 Commits

Author SHA1 Message Date
edb32165a7 Merge pull request 'Fix supporter referal links' (#4418) from fix-refer-link into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4418
2024-08-29 12:22:31 +00:00
d2f5353832
Fix supporter referal links
All checks were successful
continuous-integration/drone/pr Build is passing
2024-08-29 14:19:12 +02:00

View File

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