fix: links to cgit should be url encoded

Closes #283

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-02-13 17:34:33 -08:00
parent 708ade4dbf
commit 1671868956
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 10 additions and 6 deletions

View file

@ -6,21 +6,21 @@
<h4>{{ "Package Actions" | tr }}</h4>
<ul class="small">
<li>
<a href="/cgit/aur.git/tree/PKGBUILD?h={{ pkgbase.Name }}">
<a href="{{ config.get('options', 'source_file_uri') | format("PKGBUILD", pkgbase.Name | quote_plus) }}">
{{ "View PKGBUILD" | tr }}
</a>
/
<a href="/cgit/aur.git/log/?h={{ pkgbase.Name }}">
<a href="{{ config.get('options', 'log_uri') | format(pkgbase.Name | quote_plus) }}">
{{ "View Changes" | tr }}
</a>
</li>
<li>
<a href="/cgit/aur.git/snapshot/{{ pkgbase.Name }}.tar.gz">
<a href="{{ config.get('options', 'snapshot_uri') | format(pkgbase.Name | quote_plus) }}">
{{ "Download snapshot" | tr }}
</a>
</li>
<li>
<a href="https://wiki.archlinux.org/title/Special:Search?search={{ pkgbase.Name }}">
<a href="https://wiki.archlinux.org/title/Special:Search?{{ { 'search': pkgbase.Name } | urlencode }}">
{{ "Search wiki" | tr }}
</a>
</li>