external links without protocol broken for works #5443
Labels
Lead: @jimchamp
Issues overseen by Jim (Front-end Lead, BookNotes) [managed]
Priority: 3
Issues that we can consider at our leisure. [managed]
Type: Bug
Something isn't working. [managed]
If someone adds a link that does not start with
http://
orhttps://
to the "links" field of a work it will not be clickable.Evidence / Screenshot (if possible)
csv of works with non-http links
non-http-links.csv
Relevant url?
https://openlibrary.org/books/OL31995430M/I_Am_Brown_and_Beautiful
with link
www.imaginemecbp.com
Creates: https://openlibrary.org/books/OL31995430M/www.imaginemecbp.com
Steps to Reproduce
Proposal & Constraints
As far as I can tell, there is no way to force anchor tags to take something like "www.mysite.com" and assume it is an external link. You must prepend the protocol of
http
orhttps
.There are a few things that we can do to address this:
Related files
Stakeholders
The text was updated successfully, but these errors were encountered: