Skip to content

Commit

Permalink
enable experimental.noacquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Dec 5, 2024
1 parent 66c1167 commit ada901f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redturtle/volto/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def absolutize_path_patched(path, is_source=True):
# Check whether obj exists at source path.
# A redirect would be useless then.

### THIS IS THE PATCH ###
# THIS IS THE PATCH
# unrestrictedTraverse returns the object with acquisition, so if
# you have a content with path /Plone/aaa and try to call unrestrictedTraverse
# with /Plone/aaa/aaa/aaa/aaa it will always return /Plone/aaa object
Expand All @@ -90,7 +90,7 @@ def absolutize_path_patched(path, is_source=True):
# if paths are different, it's an acquisition false positive,
# so go on and let create the alias
err = _("Cannot use a working path as alternative url.")
### END OF THE PATCH ###
# END OF PATCH
else:
# Check whether obj exists at target path
result = catalog.searchResults(path={"query": path})
Expand Down

0 comments on commit ada901f

Please sign in to comment.