Fork me on GitHub
#reitit
<
2019-05-20
>
ikitommi11:05:25

@levitanong The bracket-syntax might help on the colon-tjing, but there is no way currently to force a certain path-parameter syntax for a router. So, both colon & bracket syntaxes are enabled by default.

ikitommi11:05:16

about encoding of path params, no option for that either. Please write issues if you need those.

levitanong11:05:59

@ikitommi I will write an issue, thanks! Also, how would bracket syntax help with the colon thing?

ikitommi12:05:34

["/olipa/ker:kikka/{avaruus}"] should work and bind just :avaruus as a path param. Doesn't help if the colon is supposed to be right after /, then it's interpreted as a path-param.

ikitommi12:05:18

Should be easy to add option to explicitly define which syntax(es) are supported for a router.

Kevin17:05:01

@ikitommi Thank you for the new release tag 🙂

PB17:05:17

So stupid question. I am using re-frame with reitit fe. I have a event that deals with page navigation. Essentially it calls push-state (https://github.com/metosin/reitit/blob/057fae9e4602a6f5a48a99b0ded694ffe40378ca/modules/reitit-frontend/src/reitit/frontend/easy.cljs#L38)

PB17:05:38

However, it appears that it's not calling the controllers for that route when using this event. Any reason why?