Some CMS url encodes hash of url, e.g. $ => %24, and tools page can't parse the encoded hash. Thus blank page is shown.
We can prevent this error from happening by url decoding the hash before processing it (using decodeURIComponent(). Not sure if that might break something. For example when there's a %xx string that shouldn't be decoded...
Also, we should probably have a more graceful degradation when hash is not parsable.
User issue: https://getsatisfaction.com/gapminder/topics/only-blank-box-showing-in-embedded-version-of-bubble-graph
Some CMS url encodes hash of url, e.g.
$
=>%24
, and tools page can't parse the encoded hash. Thus blank page is shown.We can prevent this error from happening by url decoding the hash before processing it (using
decodeURIComponent()
. Not sure if that might break something. For example when there's a %xx string that shouldn't be decoded...Also, we should probably have a more graceful degradation when hash is not parsable.