diff --git a/Products/CMFPlone/browser/icons.py b/Products/CMFPlone/browser/icons.py index 1bb25e7d58..4b4a4495ba 100644 --- a/Products/CMFPlone/browser/icons.py +++ b/Products/CMFPlone/browser/icons.py @@ -64,9 +64,13 @@ class IconsView(BrowserView): prefix = "plone.icon." defaulticon = "++plone++icons/plone.svg" + name = "" def publishTraverse(self, request, name): - self.name = name + if self.name: + # fix traversing to eg. "contenttype/document" + self.name += "/" + self.name += name return self def __call__(self): diff --git a/news/3500.bugfix b/news/3500.bugfix new file mode 100644 index 0000000000..cd758e0f65 --- /dev/null +++ b/news/3500.bugfix @@ -0,0 +1,2 @@ +fix `@@iconresolver` to resolve names with "/" correctly (eg. "contenttype/document") +[petschki]