That's just how the cljs-ajax
library works - it calls name
on each key of the :params
map of a :get
request.
BTW :format
key is completely ignored for :get
requests.
If you really need a namespaced parameter, you can encode it yourself, e.g. {"person/id" 123}
. But you will have to make sure that your web server handles it correctly. E.g. (keyword "a/b")
creates a keyword :b
with the namespace a
, but (keyword nil "a/b")
creates a keyword :a/b
with a nil namespace.
Thanks for explaining! I just found it surprising that namespaces were dropped but if that's how it's meant to work I can deal with it. Yeah, good to know that :format
is ignored for :get
. I was spinning my wheels for a while trying out all the different options.