I tried setting up a URL format that takes the hierarchy of a structure into account, but deals with the magic __home__
slug transparently.
So I did this:
{parent.uri == '__home__' ? '' : parent.uri}/{slug}
Which works, but I wanted to tighten it up using the twig ternary ?:
, like this:
{parent.uri != '__home__' ?: ''}/{slug}
But that doesn't work at all, seems to choke on the ?:
part. Is that a bug, or just a short-coming of the URL format system (not being actual twig)?