Page Redirector

Provides a feature I was missing in DokuWiki soon after installing my first copy. Fortunately, with the new plugin-type included in the recently released version of DokuWiki, it is now possible to do without use of javascript as with the goto plugin.

Could not have made this plugin without help from the author of the login_redirector plugin (Christopher Smith). The creator of the note plugin (Olivier Cortes) is also due credit as I am using his CSS to display the redirection messages.

Download

Date Version Download DokuWiki Version
2007-01-24 Build 2 .zip (5.5KB) devel

Install

  • Either use this URL in the plugin manager.
  • Or extract the contents of pageredirect.zip to ”/lib/plugins/”.

Usage

Simply include the code:

~~REDIRECT>namespace:page~~

In whatever page you want a redirect from. Replacing namespace:page with the page you want to redirect to.

You can view a page and avoid redirection by appending ?redirect=no to the URL

History

Build 2 (2007-01-24)

  • Now prevents more than 5 redirect at a time, and with that also infinite redirects.
  • Optional text to tell the user he has been redirected.

Build 1 (2006-11-09)

  • Initial release.
php/dw/pageredirect.txt · Last modified: 2007/01/24 12:53 by zyberdog