Page MenuHomePhabricator

Disable automatic redirection.
Closed, DeclinedPublic

Description

Author: NavouWiki

Description:
Request feature for the addition of an option in Special:Preferences to disable automatick redirecting when presented with #REDIRECT [[target]].


Version: unspecified
Severity: enhancement

Details

Reference
bz12606

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:06 PM
bzimport set Reference to bz12606.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

Uh, why? This would kind of severely screw up site navigation, since redirects are supposed to be transparent. It seems only very marginally useful at best, and so it's not the kind of thing we'll put in Special:Preferences. The bar for new preferences is very high to avoid clutter. You can achieve the same effect by using Greasemonkey or JavaScript or whatever to rewrite all URLs to have redirect=no, if you really want this. Clearly WONTFIX, sorry.

(In reply to comment #1)

Uh, why? This would kind of severely screw up site navigation, since redirects
are supposed to be transparent. It seems only very marginally useful at best,
and so it's not the kind of thing we'll put in Special:Preferences. The bar
for new preferences is very high to avoid clutter. You can achieve the same
effect by using Greasemonkey or JavaScript or whatever to rewrite all URLs to
have redirect=no, if you really want this. Clearly WONTFIX, sorry.

Seconded.

NavouWiki wrote:

To answer your question, it would help me when I'm fixing redirects. Not seeing how it would screw up navigation if the preference was to transparently redirect and the user would have to set pref to disable. Avoiding clutter would be adding the tick box to diable the function. It would be useful if it could be coded.

Fixing redirects in what way?

To aid in fixing redirects the correct thing to do is not an ability to disable redirects, but to have &redirect=no appended to urls in links that they are expected to be. Such as how MediaWiki 1.12 introduced that on [[Special:Movepage]] so that you could jump to an actual redirect instead of the redirect page.

If you are that desperate to have redirects disabled for yourself, just add something like this to your [[Special:Mypage/monobook.js|User:Username/monobook.js]]:
if( !location.href.match( /[&?]redirect=no/ ) ) {

location.href += ( location.href.match( /?/ ) ? '&' : '?' ) + 'redirect=no';

}

When following a redirect, there's a small text above the page saying "(Redirected from [[Foo]])". Clicking on the Foo link takes you to the redirect itself.