Extension talk:CreateRedirect

Create redirect from already existing page
Creates a redirect with an already existing page without any warning, feedback, or settings to change this behavior.

Error with 1.13
When I go to Special pages, it fails. I traced the error to line 43 in .body.php. The line should read

This fixes it for me.

i18n doesn't work
The i18n-file does only work in the list on Special:Specialpages, but not on Special:Createredirect.

The English messages in this form (CreateRedirect.body.php) seem to be hardcoded: function execute( $par ) { global $wgRequest, $wgOut, $wgTitle, $wgUser; // 1. Do some prep stuff. We call $this->setHeaders (a method of SpecialPage) for the page, and we also initialize $output, which will hold the text output to serve with the page. $this->setHeaders; $output = ""; // 2. Break from here: "crWrite" determines whether we're serving the form or we're performing the write routine. We send it along with the form on submission, so if we see a POST var "crWrite", then we've got form data to process; if it's not there, then we don't have form data to process, and we have to serve the form. if(!$wgRequest->getVal('crWrite')) { // Serve the form! // 1. Get the local URL for the "action" param, used by. This points the form back to this page (again), where if crWrite exists (which it does,) we process the submitted form. $action = $wgTitle->escapeLocalURL; $crTitle = $wgRequest->getText("crTitle"); // Also retrieve "crTitle". If this GET var is found, we autofill the "Redirect to:" field with that text. // 2. Start rendering the output! The output is entirely the form. It's all HTML, and may be self-explanatory. $output .= " Using the form below, you can create a redirect page or replace an existing page with a redirect. "; $output .= << END; $output .= << //<![CDATA[ document.redirectform.crOrigTitle.focus; //]]> END;

Marius, 9. Nov 2009

Does it allow dynamic redirects?
Will it allow me to create a dynamic redirect? Such as: To redirect the visitor to the correct section of my talk page (which I have decided to divide into quarters). -- ShoeMaker  ( Contributions &bull; Message )   17:06, 18 June 2012 (UTC)
 * 1) REDIRECT User_talk:Technical_13//

Download broken
This extension doesn't seem to exist in the repository anymore. --Stormwind (talk) 23:16, 8 August 2012 (UTC)

Patch of extension
I submitted a patch for extension here: https://gerrit.wikimedia.org/r/#/c/57410/ --Toniher (talk) 20:39, 3 April 2013 (UTC)

it doesn't work for me
I guess the catpcha is the problem.--Cihuaweb (talk) 22:33, 8 August 2015 (UTC)

Toolbar button to create inward redirect?
I've been wanting a feature for years: a WikiEditor toolbar button that makes it simple to create a redirect (e.g. for a shortcut) to the page that's currently being edited. Is this something that might fit in this extension? I'm happy to work on it. —Sam Wilson 23:48, 3 February 2020 (UTC)
 * How is it connected to WikiEditor? All other buttons in WikiEditor are adding wikitext to the currently opened textarea (i.e. to page that is currently being edited). Edward Chernenko (talk) 01:13, 4 February 2020 (UTC)
 * Also such script won't need this extension. Since toolbar buttons are added by JavaScript anyway (e.g. in Common.js), this JavaScript can use a direct API query to  that will create a redirect. Edward Chernenko (talk) 01:14, 4 February 2020 (UTC)
 * it's true, the toolbar button wouldn't have other dependencies on this extension, and it could do all it requires via the existing API. I guess I was just thinking that it is reasonably related functionality and so maybe adding it here would be better than in a new extension. But probably a new extension is a better way to go; I'll do that! —Sam Wilson 02:23, 4 February 2020 (UTC)

Add template automatically to redirect
Hi Good time Is it possible to automatically add the pattern to each change of direction? Thanks