djangocms-blog
djangocms-blog copied to clipboard
Urls and unicode tags
Description
URL for tags list view uses slug as path converter, which only accepts ASCII characters.:
https://github.com/nephila/djangocms-blog/blob/30dbb72643b30fd4a8583f6d79006a81e569a23f/djangocms_blog/urls.py#L37
But django-taggit allows unicode in tags' slugs.
When a reverse() is done on this URL, it throws an exception:
Exception Type: NoReverseMatch
Exception Value: Reverse for 'posts-tagged' with keyword arguments '{'tag': 'en-été'}' not found. 1 pattern(s) tried: ['fr/blog/tag/(?P<tag>[-a-zA-Z0-9_]+)/\\Z']
Steps to reproduce
- Create a tag with a label containing unicode chars (for example : "En été")
- Assign this tag to a Post
- Add the BlogTagsPlugin on a page
Versions
Python == 3.11 Django == 3.2.25 djangocms-blog == 2.0.7