-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOIs prepended with https://doi.org/ without percent-encoding, causing broken URLs #249
Comments
Here's some JS code that demonstrates this issue:
|
Since DOIs always contain a slash, it's unpleasant to maximally percent-encode them using
I've tried to make a pull request #250 that does this in the necessary places. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working on https://citation.doi.org we found that citeproc-js will not percent-encode DOIs that are manifested as https://doi.org links. Most DOIs are well-behaved and don't require percent-encoding, but there are some that do. A particularly tricky example is
You can paste that into https://citation.doi.org (or just use https://citation.doi.org/format?doi=10.1002%2F%28sici%291099-050x%28199823%2F24%2937%3A3%2F4%3C197%3A%3Aaid-hrm2%3E3.0.co%3B2-%23&style=apa&lang=en-US ) and you'll get
where that https://doi.org URL is broken, most obviously because of the
#
character. The correct link would beThe text was updated successfully, but these errors were encountered: