electron / pdf-viewer

Fork of Chrome pdf extension to work as webui page in Electron
51 stars 23 forks source link

PDF resource for URLs having query string doesn't work #4

Open paulbennet opened 7 years ago

paulbennet commented 7 years ago

In my test web app, I have a option to store different types of documents. Lets say something similar to Drive or Dropbox. User can preview each docs with urls like ..

Once the pdf-viewer plugin finds out it's a pdf, it tries to load preview for the file like the below ...

The above URL is invalid !!! and pdf-viewer fails to load the file content.

I did some debugging in code, the "this.originalUrl_" value ( on some src file ) is set as "https://my.app.com/previewPDF?userID=234". Only the first query string param is used, the other params are lost !! Hence the server responds with error.

Please help.