diff --git a/djangocms_blog/cms_app.py b/djangocms_blog/cms_app.py index 477d7c5..cefe215 100644 --- a/djangocms_blog/cms_app.py +++ b/djangocms_blog/cms_app.py @@ -15,12 +15,12 @@ class BlogCategoryMenu(CMSAttachMenu): def get_nodes(self, request): nodes = [] qs = BlogCategory.objects.translated(get_language()) - qs = qs.order_by('parent_id', 'translations__name').distinct() + qs = qs.order_by('parent_id', 'translations__name') for category in qs: kwargs = { 'category': category.slug } node = NavigationNode( category.name, - reverse('djangocms_blog:posts-category', kwargs=kwargs), + category.get_absolute_url(), category.pk, category.parent_id )