Can you confirm this observation?
If for a ressource you choose an alias name containing an underscore and save, the underscore will be transformed into a
hyphen: [tt]test_page[/tt] becomes [tt]test-page[/tt].
Yes, its intentional, the alias is run through a cleanAlias function which does this.
Use MODx, or the cat gets it!
Thank you, it’s clear now.
My question is can you allow _ while still having the default delimiter be a -
I thought I could just remove it from trim characters, but that doesn't seem to be the case.
How do I allow an underscore in my urls while still having the default be a -
-
MODX Staff
- 10,725 Posts
Remove _ from the friendly_alias_word_delimiters setting so it will not be replaced by the friendly_alias_word_delimiter character.