I have tried many ways to associate correctly my nice url in a key => value fashion, without success. I’m sure it must be fairly simple to someone with mroe experience.
Right, or we could remove all slashes at the start of the string, which I think is a bit nicer because it also avoids accidental double slashes problems.
For completeness sake we could check if count($requestUri) %2 == 0 to see that each key has a value, but I’m not sure what to do if this is not the case, so I’ll leave that to the OP.