statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

Make transliteration optional #1156

Open husseinalhammad opened 7 months ago

husseinalhammad commented 7 months ago

Current behaviour

Slug field type

The slug fieldtype transliterates the value by default regardless if it is generated from another field or manually entered.

Routing

It seems routing rules generated by Statmic (based on collection's settings) only match the transliterated values.

For example, if my collection's Route field value is /تجربة/{my_custom_slug} and an entry within this collection has /تجربة/{my_custom_slug} as the value of my_custom_slug, Statamic routing only matches the transiletrated path /tgrb/grbny and not /تجربة/جربني.

Request

Make slug fieldtype and routing transliteration optional (enabled by default to avoid introducing a breaking change). This is currently a major blocker for some projects.