Skip to content

Commit

Permalink
Merge pull request moinwiki#1798 from UlrichB22/fix_1782
Browse files Browse the repository at this point in the history
Fix traceback when viewing item with @itemid
  • Loading branch information
RogerHaase authored Nov 13, 2024
2 parents 2d4884d + d8ef5b7 commit d787f72
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 d787f72

Please sign in to comment.