Skip to content
Snippets Groups Projects
Commit 893ce8c1 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

Ignore task hrefs with query parameters for now

Ex: https://bugs.archlinux.org/task/69718 which has a link to
https://bugs.archlinux.org/task/69462?string=tt-rss, ideally we should
rewrite it to "69462#string=tt-rss".
parent be12e6b9
No related branches found
No related tags found
No related merge requests found
Pipeline #6212 canceled
......@@ -8,7 +8,7 @@
</xsl:template>
<!-- Rewrite all href="http[s]://bugs.archlinux.org/task/<id>" to "<id>.html" -->
<xsl:template match="a/@href[(starts-with(normalize-space(.), 'http://bugs.archlinux.org/task/') or starts-with(normalize-space(.), 'https://bugs.archlinux.org/task/')) and not(contains(., 'getfile'))]">
<xsl:template match="a/@href[(starts-with(normalize-space(.), 'http://bugs.archlinux.org/task/') or starts-with(normalize-space(.), 'https://bugs.archlinux.org/task/')) and not((contains(., 'getfile') || contains(., '?'))]">
<xsl:attribute name="href">
<xsl:variable name="href" select="translate(. , '&#xA;', '')"/>
<xsl:choose>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment