Skip to content

Commit

Permalink
fix: webpath breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 30, 2024
1 parent 805af72 commit 5abd0b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cms/contexts/templatetags/unicms_contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ def _build_breadcrumbs(webpath: WebPath):
crumbs = []
if webpath.parent:
crumbs = _build_breadcrumbs(webpath.parent)
crumbs.append((webpath.get_full_path, webpath.name))
crumbs.append((webpath.get_full_path, webpath.name))
# else:
# root_prefixed = f'/{settings.CMS_PATH_PREFIX}'
# crumbs.append((root_prefixed, _('Home')))
else:
crumbs.append((webpath.get_full_path, webpath.name))
# else:
# crumbs.append((webpath.get_full_path, webpath.name))
return crumbs


Expand Down

0 comments on commit 5abd0b5

Please sign in to comment.