Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non ascii characters being used in element IDs #470

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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