frontend: avoid double slash in data urls
This commit is contained in:
parent
0d164a1f31
commit
74d7564bdc
@ -35,7 +35,7 @@ function loadAll(zetikettes) {
|
||||
$.post(backend_api, JSON.stringify(req))
|
||||
.then(data => {
|
||||
console.log(data);
|
||||
const pdfbtn = $(`<a class="btn" href="${backend_api}/data/${data.file}" target="_blank">open pdf</a>`);
|
||||
const pdfbtn = $(`<a class="btn" href="${backend_api}data/${data.file}" target="_blank">open pdf</a>`);
|
||||
action.append(pdfbtn);
|
||||
})
|
||||
.catch(err => {
|
||||
|
Loading…
Reference in New Issue
Block a user