haystack / nb

11 stars 10 forks source link

Remove `.pdf` from default URL #287

Closed casillasenrique closed 5 months ago

casillasenrique commented 5 months ago

Previous code for loading the PDF into the pdf viewer set the URL as "uploads/" + urlParams.get('id') but new one adds the ".pdf" extension, which seemingly is causing a 404 error:

image