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

Rewrite all href="https://bugs.archlinux.org/task/<id>" to "<id>.html"

wget only does this if "--include-directories" contains "task"
("download attachment" = true) or if the task was already downloaded
(or is in the url list (not sure)).

Ref #2
parent f466fdf3
No related branches found
No related tags found
No related merge requests found
Pipeline #6145 passed
......@@ -7,6 +7,13 @@
</xsl:copy>
</xsl:template>
<!-- Rewrite all href="https://bugs.archlinux.org/task/<id>" to "<id>.html" -->
<xsl:template match="a/@href[starts-with(., 'https://bugs.archlinux.org/task/') and not(contains(., 'getfile'))]">
<xsl:attribute name="href">
<xsl:value-of select="concat(substring-after(., 'https://bugs.archlinux.org/task/'), '.html')"/>
</xsl:attribute>
</xsl:template>
<!-- Change href for "Attached to Project: $PROJECT" to # -->
<xsl:template match="a/@href[contains(., '/index.php?project=')]">
<xsl:attribute name="href">
......
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