Skip to content

Conversation

fr-Pursuit
Copy link

Hi!

The unicode_slugify filter is used to generate slugs from the display name of things like tabs. This variant keeps special, non-ascii characters such as accented characters.

However, the resulting slug is used as ID for some elements (like the content of tabbed menus), and using non-ascii characters in IDs can cause problems such as the inability to generate a URL that directly opens a specific tab. Such problems can easily be explained by the fact that IDs with special characters don't seem to be supported by the W3C.

Therefore, the ascii variant of this filter (ie: slugify) should be used instead.

Regards,
Pursuit

@fr-Pursuit fr-Pursuit changed the title Fix non ascii characters beeing used in element IDs Fix non ascii characters being used in element IDs Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants