Redirect when traversing to acquired content outside the current path.
This Plone addon aims to solve the very common issue of having a lot of different URLs that publish the same content item via acquisition.
Zope implicit acquisition leads to many use case where URLs that are valid for the publisher are produced but are not the URLs meant by the users of the system.
This addon modifies the publication process to ensure that instead of allowing traversal from a content item to another content item via acquisition, we redirect to the URL of the traversed content item.
In the previous paragraph, an item is considered a content item if and only if it provides Products.CMFCore.IContentish.
This should avoid false positive redirects for URL path item that are acquired but are actually parts of the software rather than content items.
If you need to enable publication of content items via acquisition, mark them with collective.redirectacquired.interfaces.IPublishableThroughAcquisition.
- less noisy logging [gotcha]
- NotFound when acquiring a site [gotcha]
- Be defensive against circular redirects caused by broken Link objects or broken plone.folders [gotcha]
- Get rid of code made useless by refactoring. More tests [gotcha]
- Refactor for more complex acquisition https://github.com/collective/collective.redirectacquired/issues/3 [gotcha]
- Do not break redirector https://github.com/collective/collective.redirectacquired/issues/2 [gotcha]
- Do not allow to cache permanent redirection https://github.com/collective/collective.redirectacquired/issues/1 [gotcha]
- Redirect permanently (301) [gotcha]
- Take care of QUERY_STRING. [gotcha]
- Do not redirect if REQUEST_METHOD is not GET. [gotcha]
- Fix and test when logging only. [gotcha]
- Fix rushed code. [gotcha]
- Logging is back. [gotcha]
- More tests and refactoring [gotcha]
- More tests [gotcha]
- Much simpler implementation [gotcha]
- Remove useless inclusion of CMFPlone in configure.zcml [gotcha]
- Initial release [gotcha]
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size collective.redirectacquired-1.0a12.tar.gz (188.5 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for collective.redirectacquired-1.0a12.tar.gz