PlanBCode / hypha

1 stars 8 forks source link

peer_reviewed_article: Fix comment links without https:// #373

Closed matthijskooijman closed 3 years ago

matthijskooijman commented 3 years ago

These were previously detected, but then used as-is, making the browser interpret them as relative links on the current domain, rather than absolute links. This is fixed by using an extra regex capture to detect these urls and insert https:// if no protocol is already there.