FANDOM


AjaxRedirect adds a button to the page edit drop-down menu to quickly redirect the current page. It will work regardless of if the page exists or not.

Note: If this script is installed wiki-wide, it is strongly recommended to enclose the import statement in an if statement which will only let certain usergroups load the script. An example for the sysop (administrator) usergroup is shown below:

if (mw.config.get("wgUserGroups").indexOf('sysop') > -1)
  importScriptPage('MediaWiki:AjaxRedirect/code.js', 'dev');

Usage

Installation


Oasis

The script adds a button to the edit drop-down menu. When the button is clicked, a popup will appear asking what the page should redirect to. After confirming, it will instantly redirect the current page to the specified one.

Monobook

The script adds a link alongside the other regular actions. When the link is clicked, a popup will appear asking what the page should redirect to. After confirming, it will instantly redirect the current page to the specified one.