[MAGNOLIA-8037] Strip accents when creating node names Created: 23/Mar/21 Updated: 19/May/22 |
|
| Status: | Accepted |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 6.2.7 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Martin Drápela | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Description |
|
Description of current state The use case taken from Content editor migration, but seems to be widespread in Magnolia. If an editor whose written language is accented creates a story, then there is a not-so-nice UX issue when a story title such as this one
is converted to a story name O--erve-ou-k-m-jabl–ku:
Proposed solution Apache's stripAccents (http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#stripAccents-java.lang.String-) could be used to generate more user-friendly names instead (O-cervenouckem-jablicku) rather than (or before) "replacing the characters with a dash <code>-</code>".
Developer notes
|