Menu

#80 Permalinks are broken in Firefox

0.6.5
open
nobody
None
2015-09-04
2015-08-06
Dennis
No

Whenever code or input contain a hash sign, the resulting permalink is broken in Firefox.

This seems to be caused by the fact that Firefox performs URI decoding on the hash before decodeURIComponent, so the string is decoded twice.

For most characters, this doesn't matter. However, W%25z -> W%z results in an error message in Firefox, since %z cannot be decoded.

Discussion

  • Dennis

    Dennis - 2015-08-06

    As a temporary workaround, % can be encoded twice as %2525 for Firefox. However, this breaks the code for Chrome.

     

Log in to post a comment.