core
core copied to clipboard
use underscores in slugs
Hi, Is there any way to use underscores in slugs?
No, symfony automatically generates them using dashes. What is the usecase for this?
ok, I get it usecase - just client is using predefined adresses in QR codes on their product packs
I thought I could redefine it in config/packages/cocur_slugify.yaml
cocur_slugify:
separator: '_'
but failed
Here Symfony allows the definition of separator SluggerInterface The solution might be to allow a user define it as well in yaml. Can I try this as well @bobdenotter ? If it's necessary.