bolt / core

🧿 Bolt 5 core
https://boltcms.io
MIT License
550 stars 161 forks source link

use underscores in slugs #2616

Open denis-gorin opened 3 years ago

denis-gorin commented 3 years ago

Hi, Is there any way to use underscores in slugs?

bobdenotter commented 3 years ago

No, symfony automatically generates them using dashes. What is the usecase for this?

denis-gorin commented 3 years ago

ok, I get it usecase - just client is using predefined adresses in QR codes on their product packs

denis-gorin commented 3 years ago

I thought I could redefine it in config/packages/cocur_slugify.yaml

cocur_slugify:
    separator: '_'

but failed

abdellahrk commented 2 years ago

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.