馃悰 [Bug] Wrong German Umlaut Handling in Editor
Created by: Tirokk
Authored by datenbrei Closed
馃悰 Bugreport
The Editor component does not encode German umlauts in URLs correctly:
Browsers decode encoded umlauts in the URL bar. This one:
https://www.dw.com/de/bundeswehr-benennt-kaserne-nach-ns-widerst盲ndler/a-51101207
gets
"https://www.dw.com/de/bundeswehr-benennt-kaserne-nach-ns-widerst%C3%A4ndler/a-51101207">
Umlauts are not allowed in URLs, but users don't know about this. So if they make use of these, the editor should correct this and encode the umlauts and other special characters.
Steps to reproduce the behavior
- Insert a link with a German Umlaut into the Editor
- See the URL to be split or broken
Expected behavior
The editor component should encode umlauts in URLs correctly
Version & Environment
Type: [Desktop]
- OS: [MacOS]
- Browser: [Firefox]
- Version [70]
- Device: [PC]
Additional context
This means, that even if a user inserts bad URLs with Umlauts the editor should fix this. Browsers encode umlauts in the URL bar, so should our editor handle this.