Pdf.js :: Strange behaviour with trailing slash in URL

Dear all, dear @asmecher
I am witnessing some strange behaviour of the pdfJsViewer where some files are being displayed and some do not.
This one does not show: https://www.medienpaed.com/article/view/26/26
This one does: https://www.medienpaed.com/article/view/27/27
Both files and database entries are fine and resp. equal (chmod etc.).

When I remove the final trailing slash in <iframe> in the case where the file does not show, it is fine: https://www.medienpaed.com/plugins/generic/pdfJsViewer/pdf.js/web/viewer.html?file=https%3A%2F%2Fwww.medienpaed.com%2Farticle%2Fdownload%2F26%2F26

Same for the download link:
This one does not work: https://www.medienpaed.com/article/download/26/26/
This one works:https://www.medienpaed.com/article/download/26/26

The article / sumbission 27 loads with or without the slash.

Is this related to this issue? https://github.com/pkp/pdfJsViewer/issues/34

What’s the matter with this trailing slash? Why are some working and some are not?

Thanks for your help and all the best
Klaus

Hi @klausru,

Are you assigning numeric custom identifiers to the articles or issues?

Regards,
Alec Smecher
Public Knowledge Project Team

No we don’t. These old articles are back issues and have been imported via xml into Ojs 2.4 two years ago.

Dear @asmecher

I tend to withdraw my question. I’ve got some complicated .htaccess in place in order to catch old links towards the journal and articles.
Tonight I commented out some redirects in question and now things do work. So, for now it’s my fault.
Thanks @asmecher for having a look at it.
As for the trailing slash: It still works with or without; even those that did not work before.

All the best
Klaus

Hi @klausru,

Great, glad to hear it’s resolved.

Regards,
Alec Smecher
Public Knowledge Project Team