Permalinks are broken in Firefox
A stack-oriented programming language suitable for code golfing
Status: Alpha
Brought to you by:
aditsu
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.
As a temporary workaround,
%
can be encoded twice as%2525
for Firefox. However, this breaks the code for Chrome.Seems to be fixed in Firefox version 41: https://bugzilla.mozilla.org/show_bug.cgi?id=1093611
I did some work on this: http://chat.stackexchange.com/transcript/240?m=23871298#23871298 but I'm not sure if it's needed anymore.