DH-IT-Portal-Development / ethics

Ethical Committee web application in Django
http://fetc.hum.uu.nl
MIT License
2 stars 1 forks source link

Broken links in PDFs #636

Closed miggol closed 8 months ago

miggol commented 8 months ago

Example of a broken link:

https://https//fetc.hum.uu.nl/media/FETC-AK-24-044-01-van_Es-T1-Briefing.docx

The cause is that these URLs are generated with both a https:// prefix, and a BASE_URL which also contains a protocol.

What is unclear to me is what happens with the colon after the second https. It seems to get removed somewhere in PDF generation, whereas a colon that correctly defines a hostname:port combination does not.

This mystery shouldn't matter for our fix, though.