Menu

#72 HTML link encoding bug

closed
None
Bug
2024-08-20
2024-08-19
No

Hi Jason, once again thank you for providing us with this wonderful software and for your efforts in maintaining it.

I found a little bug that I think is on the Hypernomicon side, though it's possible it's a browser issue instead. When I create a hyperlink in a work record that includes a percent sign, clicking that link opens the browser window at an address with all the percent signs escaped to %25.

Example: on Chrome you can create a link to a specific block of text. If the text contains spaces, the link contains percent signs, because the spaces are all escapes to %20, like so:

https://en.wikipedia.org/wiki/Fish_jaw#:~:text=the%20bone%20homologous%20to%20the%20mandible%20of%20mammals%20is%20merely%20the%20largest%20of%20several%20bones

When I insert this as a hyperlink in a work record, it looks as it should (see attached image). But when I click it, all the percentages are replaced with %25, so all the instances of %20 become %2520 and the connection to the text block is lost:

https://en.wikipedia.org/wiki/Fish_jaw#:~:text=the%2520bone%2520homologous%2520to%2520the%2520mandible%2520of%2520mammals%2520is%2520merely%2520the%2520largest%2520of%2520several%2520bones

A very minor bug but I guess it could have an impact elsewhere if it's doing this with other characters.

1 Attachments

Discussion

  • Jason Winning

    Jason Winning - 2024-08-20
    • status: open --> closed
     
  • Jason Winning

    Jason Winning - 2024-08-20

    Fix committed to GitHub. Will be in next release.

     
    🎉
    1

Log in to post a comment.