This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-29
Channels
- # admin-announcements (1)
- # announcements (3)
- # babashka (18)
- # beginners (35)
- # cider (4)
- # clj-kondo (52)
- # cljs-dev (2)
- # clojure (92)
- # clojure-spec (18)
- # clojurescript (17)
- # conjure (11)
- # core-async (1)
- # datomic (11)
- # emacs (5)
- # fulcro (11)
- # graalvm (10)
- # helix (21)
- # kaocha (6)
- # malli (1)
- # membrane (37)
- # off-topic (110)
- # re-frame (1)
- # reagent (12)
- # reitit (5)
- # rewrite-clj (1)
- # sci (1)
- # shadow-cljs (40)
- # vim (21)
- # vrac (17)
When matching a catch all path by name, should reitit url encode the path? It seems like it should not. Below is the actual result.
(r/match->path
(r/match-by-name
(r/router ["/a/{*rest}" ::a])
::a
{:rest "foo/bar"}))
=> "/a/foo%2Fbar"
I would’ve expected “/a/foo/bar”I’m not sure how they handle it.
(r/match->path
(r/match-by-name
(r/router ["/a/{*rest}" ::a])
::a
{:rest "foo/bar?a=1"}))
=> "/a/foo%2Fbar%3Fa%3D1"
fyi, made an issue for this https://github.com/metosin/reitit/issues/432