Extension:Redirect
From MediaWiki.org
Check usage(experimental)
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 |
Download snapshot (Git master)
Git [?]: repo summary • tree • code changes SVN [?]: checkout-url • tree • code changes |
|||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
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:
- NewUserMessage redirecting new accounts to Special:Mytalk, or
- 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.
- Account creation target: MediaWiki:Redirect-addnewaccount
- Logout target: MediaWiki:Redirect-userlogoutcomplete
[edit] Credits
This extension is based on the extensions RedirectOnAccountCreation and RedirectAfterLogout by Marcel Minke, aiming to combine and improve them.