Author image
Senior Developer

Page manager redirect

Quite often you need to redirect a particular path on a Drupal site, there are a number of ways to do this, but most involve writing PHP code. Also, it's not hugely easy to do things like redirect node/%node but only when %node is a 'image' node, posted on a Tuesday. The awesome Page manager module, and a little utility module we wrote changes that.

Page manager redirect Drupal module exposes a 'task handler' to Page manager. This means that we can do a 'task' when page manager matches a path, and other conditions pass; The task that Page manager redirect exposes is to redirect to another page.

This allows us to easily set up things like redirecting a user's profile node to the user whose profile it is, or redirect individual image nodes in a gallery to the gallery they belong to.

The module hooks into the awesome power provided by the Page manager module, so you load up contexts from wherever, and then use them as tokens in the path for redirection.

The Page manager redirect module is still in development, and we still have a tiny bit of work to do before releasing a stable version. Feel free to try it out and report any issues in the queues!

Page manager redirect is available on


As much as I like CTools -- why not use Rules for this?

Rules is a massively complex beast, I'm not sure I'd want rules being executed on every single page load, as they are quite slow. Also, Page Manager handles the task better, it is a purpose built 'change what happens on this path' machine. It can also add new paths easily, and has a much more friendly UI.

Basically using Rules would only be useful for the conditions part, but would suck for everything else.

Comments on this article are now closed, if you want to give us feeback you can use our contact form instead.