1
0
Fork 0

use baseUrl if downloadUrl is not available

This commit is contained in:
Malte Jürgens 2022-10-07 18:55:03 +02:00
parent ebde75ab81
commit a3e1a3b152
Signed by: maltejur
GPG key ID: D29FBD5F93C0CFC3

View file

@ -49,10 +49,10 @@ export default function AusgabeHertzschlag(params) {
<button>
<i class="fa fa-download"></i>Download
<div class="dropdown">
<a href="${json.downloadUrl}hertzschlag/pdf/compressed/${ausg["Ausgabe"]}.pdf">
<a href="${json.downloadUrl || json.baseUrl}hertzschlag/pdf/compressed/${ausg["Ausgabe"]}.pdf">
<i class="fa fa-file"></i>Niedrige Qualität
</a>
<a href="${json.downloadUrl}hertzschlag/pdf/${ausg["Ausgabe"]}.pdf">
<a href="${json.downloadUrl || json.baseUrl}hertzschlag/pdf/${ausg["Ausgabe"]}.pdf">
<i class="fa fa-file"></i>Hohe Qualität
</a>
</div>