Closed melissadoyon closed 3 years ago
That’s expected, as non-ASCII characters are allowed in URLs.
If you wish to limit the automatically-generated slugs to ASCII characters, enable the limitAutoSlugsToAscii config setting in config/general.php
.
'limitAutoSlugsToAscii' => true,
It is indeed what I already have in my config. limitAutoSlugsToAscii is set to true. Therefore I would expect that this behaviour would not occur.
Are you typing/pasting the non-ASCII characters directly into the Slug field? In that case the setting won’t apply. “Auto” refers to the auto-generated slugs that are created based on the entry title.
No I am typing/pasting the non-ASCII characters into the Title field.
Sorry, I see what you mean now. Able to reproduce…
Fixed now for the next release. Sorry about the confusion, and thanks for the report!
Amazing! Thank you and you're welcome!!
Craft 3.6.12.1 is out now with the fix for this. Thanks again!
Hi, how it will be in craft4?
->limitAutoSlugsToAscii(true)
Because i added it, and if i edit the slug with special accents or characters, it still keeps them
@vitalijalbulimitAutoSlugsToAscii
only applies to auto-generated slugs: https://craftcms.com/docs/4.x/config/general.html#limitautoslugstoascii.
Nothing stops a user from amending the slug to contain non-ASCII characters.
Description
When typing or copy-pasting in the Entry Title field content with special characters, the slug generated keeps the accents for some of them.
Steps to reproduce
*Note: Do not have this issue with a project currently on Craft version 3.6.3.
Additional info