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:

hello/world
another/place/in/space

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)

hello/world?locataion=another/place/in/space

Another solution is to do like this:

hello/world/-/another/place/in/space

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: https://getkirby.com/docs/toolkit/api/helpers/param

1 Like