Skip to main content

Page manager redirect

An article from ComputerMinds - Building with Drupal in the UK since 2005
1st Jul 2010

Steven Jones

Senior Developer
Hey, you seem to look at this article a lot! Why not Bookmark this article so you can find it easily in the future?

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 drupal.org

Hi, thanks for reading

ComputerMinds are the UK’s Drupal specialists with offices in Bristol and Coventry. We offer a range of Drupal services including Consultancy, Development, Training and Support. Whatever your Drupal problem, we can help.