clj-commons / secretary

A client-side router for ClojureScript.
773 stars 64 forks source link

Decode query params keys #95

Open wagjo opened 7 years ago

wagjo commented 7 years ago

Collection values are encoded into query params with brackets attached as a suffix. When parsing back the url query string, the keys are not decoded. As brackets in query keys tend to be percent encoded in several tools, parser should decode them.

Example of such query, github percent encodes brackets in the href of the following link automatically: http://example.com/search?terms[]=foo&terms[]=bar

wagjo commented 7 years ago

Fix is provided in #94