Skip to content

Commit

Permalink
Fix traceback when viewing item with @itemid
Browse files Browse the repository at this point in the history
  • Loading branch information
UlrichB22 committed Nov 13, 2024
1 parent 2d4884d commit d8ef5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/moin/themes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def location_breadcrumbs(self, fqname):
if not isinstance(fqname, CompositeName):
fqname = split_fqname(fqname)
if fqname.field != NAME_EXACT:
return [(fqname, fqname, bool(self.storage.get_item(**fqname.query)))]
return [(fqname, fqname)]
namespace = segment1_namespace = fqname.namespace
item_name = fqname.value
if not item_name:
Expand All @@ -358,7 +358,7 @@ def path_breadcrumbs(self):
Assemble the path breadcrumbs (a.k.a.: trail)
:rtype: list
:returns: path breadcrumbs items in tuple (wiki_name, item_name, url, exists, err)
:returns: path breadcrumbs items in tuple (wiki_name, item_name, url, aliases, err)
"""
user = self.user
breadcrumbs = []
Expand Down

0 comments on commit d8ef5b7

Please sign in to comment.