check-face / checkface

Putting a face to a hash
https://checkface.facemorph.me
Other
25 stars 13 forks source link

Decoding value from URL twice? #20

Closed olivercoad closed 5 years ago

olivercoad commented 5 years ago

See #18 for context.

If a user inputs asdf%2B%2B *(not as the first search on that tab), it is, as expected, URL encoded as asdf%252B%252B and generates the following face.
Checkface for url encoding as asdf%252B%252B

However, if you navigate to https://checkface.ml/?value=asdf%252B%252B, it shows the input box and checkface for asdf++ instead, which normally has the url https://checkface.ml/?value=asdf%2B%2B.

*Although this is not caused by a18c70ee362023df4e916aa16600ac1b8ac265dc, it is complicated as it makes the first search one does after navigating to checkface do a full page navigation (whereas subsequent requests are done with the original behaviour using javascript like a SPA).