Good approach for GET route with multiple (:all)?

I quite often run into a situation where I need a GET route with two directories.

Something like this:


In a route when we use (:all) we need something to separate the two strings. Using (:all)/(:all) will not work, because then it will be hello/world/another/place/in and space.

It would be possible to do something like this:

(mybe the slash needs to be urlencoded, not sure)


Another solution is to do like this:


I like the last one. Do you think it’s fine or do you have a better solution?

What do you think about adding the second path as a param?
I have not tested it yet, but may be it can be a solution I hope.

1 Like

Params are ignored by the router:

1 Like