More flexible URL parameters.

I’d really like to be able to work with variables in longer paths like this, mostly for SEO purposes. Was sad to find it’s not possible.

image

Is there any way to make this work? I CAN do /[services]wordhere/ so it’s possible to mix variables inside strings, but why not using dashes, or multiples in one string?

Hi @tom_prest-drawbridge, the reason a path like [services]-in-[city] is not allowed is because it would be ambiguous if services or city contained in. For example, consider a URL like abc-in-in-def, then it’s unclear whether it should be:

  • services=abc and city=in-def
  • services=abc-in and city=def

A workaround here is to use a single path parameter, then extract the services/city in state variables. I made an example here: Plasmic