diff --git a/product/CMFCategory/CategoryTool.py b/product/CMFCategory/CategoryTool.py index f2d610994a24454979f9a09be249747647fe03ab..fb76a50bcc9d805e7acee10c56de1558e1538315 100644 --- a/product/CMFCategory/CategoryTool.py +++ b/product/CMFCategory/CategoryTool.py @@ -231,11 +231,8 @@ class CategoryTool(BaseTool): try: relative_url = str(relative_url) - if base_category is not None: + if base_category is not None and not relative_url.startswith(base_category + '/'): relative_url = '%s/%s' % (base_category, relative_url) - relative_url = \ - self._removeDuplicateBaseCategoryIdInCategoryPath(base_category, - relative_url) value = self.unrestrictedTraverse(relative_url) except (TypeError, KeyError, NotFound): value = None