Apple's Preview doesn't handle links right in PDFs
Hi!
Recently, we've painfully discovered, that apple's Preview that's shipped with our Catalina, Version 11.0 (999.4) is not handling URL links right in the PDF. Namely urls with fragments in them (https://example.com/url#fragment) are rendered with the pound-sign/hashmark is url-encoded (https://example.com/url%23fragment which is obviously incorrect, and browsers won't re-encode it, so any urls that'd deeplink or depend on the # character are now screwed.
We worked around the issue with using URL shortener websites, not to contain the pound-sign in the embedded link, but you can imagine how a generation of users will open PDFs all around the world and find corrupt urls in them.
We tested this on earlier mac versions, with Preview v10.1 and the links work fine.
Tested with different characters (?, &, =) and it's only the # character that gets encoded to %23.
Thanks!
Alex