backups: Don't open a new window for downloading backups

Opening a new window is simply unnecessary.

Tests:

- Clicking the link will result in immediate download in Chrome without
navigating away from the page.

- Clicking the link will result in download prompt in Firefox without navigating
away from the page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2021-01-01 14:00:30 -08:00 committed by Veiko Aasa
parent 1cf0748a49
commit cc8c0cb05d
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -72,7 +72,7 @@
<tr id="archive-{{ archive.name }}" class="archive">
<td class="archive-name">{{ archive.name }}</td>
<td class="archive-operations">
<a class="archive-export btn btn-sm btn-default" target="_blank"
<a class="archive-export btn btn-sm btn-default"
href="{% url 'backups:download' uuid archive.name %}">
{% trans "Download" %}
</a>