Extension:Redirect

From MediaWiki.org
Jump to: navigation, search

Check usage(experimental)

MediaWiki extensions manual - list
Crystal Clear action run.png
Redirect

Release status: stable

Implementation Hook
Description Allows easy configuration of redirects on account creation and logout
Author(s) Siebrand Mazeland, Marcel Minke.
Last version 1.0 (2009-01-10)
MediaWiki 1.14 or newer
License CC-BY 3.0 Unported
Download
Hooks used
AddNewAccount

UserLogout

Extension (Results)
1.13.5 1.14.0 trunk
r45625
MediaWiki 1.13. - - -
1.14.0 - - -
trunk - - Yes
Configure Supported from 1.15.
MediaWiki Testing

Normally, when a user creates and account or when logging out a page is shown. This default page can be changed using this extension.

For example:

  1. NewUserMessage redirecting new accounts to Special:Mytalk, or
  2. redirecting to Special:UserLogin on logout.


Contents

[edit] Installation

  • Download the extension
  • Place the files in ./extensions/Redirect/
  • Add the following line to your LocalSettings.php
require_once( "$IP/extensions/Redirect/Redirect.php" );

This extension is supported by Configure.

[edit] In-wiki configuration

Text on configuration pages should not contain mark-up. Contents of "Main Page" would redirect to Main Page. If the configuration page does not exist, if the configuration page is empty, or if the redirect target does not exist, behaviour will not be changed.

[edit] Credits

This extension is based on the extensions RedirectOnAccountCreation and RedirectAfterLogout by Marcel Minke, aiming to combine and improve them.

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox