Skip to main content

redirection tool

Project description

by Martin Aspeli <optilude@gmx.net> based on work by Helge Tesdal (RedirectionTool) and Whit Morriss (topp.rose).

Bring dead links back to life! plone.app.redirector knows where your content used to be and can bring you to its new location when content moves.

This component expects you to register storage.RedirectionStorage as a local utility providing IRedirectionStorage (CMFPlone does this). Once that’s done, the subscribers in subscribers.py will listen for object moved and object deleted events.

When an object is moved (renamed or cut/pasted into a different location), the redirection storage will remember the old path. It is smart enough to deal with transitive references (if we have a -> b and then add b -> c, it is replaced by a reference a -> c) and circular references (attempting to add a -> a does nothing).

When an object is deleted, all references to it are deleted as well.

The view in browser.py contains methods (used in Plone’s default_error_message.pt when it gets a NotFound error) that do the following:

  • attempt to redirect from the assumed intended path to the new path of an object, if the redirection storage holds a reference from the old path.

  • if not, look for the first valid parent of the assumed intended path, and present it as an option to the user

  • further, use the last id of the assumed intended path and attempt to search for objects in the catalog that contain this, presenting the options to the user

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plone.app.redirector-1.0.7.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plone.app.redirector-1.0.7-py2.4.egg (26.9 kB view details)

Uploaded Egg

File details

Details for the file plone.app.redirector-1.0.7.tar.gz.

File metadata

File hashes

Hashes for plone.app.redirector-1.0.7.tar.gz
Algorithm Hash digest
SHA256 02d22a80c2787b3e8c13e1cfadb2b5a561f15685eef03757703fe8c4d93ae11d
MD5 be43adfd0a33e7d54190c1f8c880cbab
BLAKE2b-256 3f06f329300abd182cfb31781b493e97badd974d11a32ccfbfed6bc38834a57b

See more details on using hashes here.

File details

Details for the file plone.app.redirector-1.0.7-py2.4.egg.

File metadata

File hashes

Hashes for plone.app.redirector-1.0.7-py2.4.egg
Algorithm Hash digest
SHA256 65ff503b858593afabd38c573b267d2147f2b01c004c5ee61d73e96e07bbfa2c
MD5 72b5c9da9101a8e66d972977db770ce3
BLAKE2b-256 5977e79f4a8b5b44815548a0303b13f29240aa391b1e6ace388077dc0b8715d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page