buda-base / BDRC-Lib-App

5 stars 2 forks source link

PDF Download acting strangely #107

Open eroux opened 2 years ago

eroux commented 2 years ago

Here's a video that shows a user downloading a PDF from the app but failing: http://eroux.fr/BDRC.mp4%201.mp4

the page the app goes to is https://library.bdrc.io/scripts/embed-iframe.html?work=bdr:W3CN3039&lang=bo-x-ewts&uilang=en&origin=BDRCLibApp1.2.0

and then the PDF download link should be https://iiif.bdrc.io/download/file/pdf/bdr:I3CN3519:1-52 (which won't be active before it's generated in the cache by the aforementioned web page)

It seems to work fine in a regular web browser, it's a bit unclear what's failing between the browser opened by the app, something in our JS, something in the PDF, something on the phone of the user, etc. so I'm not really sure how to debug things here...

This would probably be fixed by https://github.com/buda-base/BDRC-Lib-App/issues/106