Apply sonata_urlsafeid to templates