Last modified: 2014-05-04 17:40:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2378, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 378 - Display links to redirects that link to non-existent pages in red
Display links to redirects that link to non-existent pages in red
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.23.0
All All
: Lowest enhancement with 5 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: community-consensus-needed
: 1756 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-04 08:02 UTC by xmlizer
Modified: 2014-05-04 17:40 UTC (History)
13 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description xmlizer 2004-09-04 08:02:35 UTC
Sometime it is easyer to have information about the different way to call an
idea or a person than to have enough information to create an article, so you
may want to create the redirects to that "future" article.

Another time, when an article has been created, some people add a lot of
redirects, and if this article happen to be deleted, some redirects could stay
and link nowhere

A way to let contributers create redirect without masking the fact that the
article don't/no more exists, could be to give to a redirect the final status of
the last redirect chain

So in A -> B(r) -> C(r) -> D, the link in A to B should be a "blue" link because
even if there is multiple redirects (which is very ugly), the last in the chain
(D) exists

And in X -> Y(r) -> Z(r) -> {T}, the link in X to Y should be a red link because
the last {T} doesn't exists
Comment 1 elian 2004-10-02 20:35:39 UTC
This problem is better solved by human intelligence (in german wikipedia there's
the rule that redirects  to non-existing articles shouldn't exist, I think in
other projects there may be similar rules).
Comment 2 Rowan Collins [IMSoP] 2004-10-02 23:07:57 UTC
I wouldn't be so hasty at closing this request: there are some decent arguments
for allowing "speculative redirects" to pages that don't yet exist. A good
discussion of this already exists on the old SourceForge RFE tracker:
http://sourceforge.net/tracker/index.php?func=detail&aid=594421&group_id=34373&atid=411195

However, the example in comment #0 also assumes another feature that doesn't
exist: handling of redirects to other redirects. This is deliberately avoided to
keep things from becoming "spaghettified".

I'm going to reopen for now, with a better summary.
Comment 3 Timwi 2004-10-02 23:14:36 UTC
The summary was ambiguous; we already allow redirects to non-existent pages.
Here's my suggestion for a summary.
Comment 4 Rowan Collins [IMSoP] 2004-10-02 23:18:35 UTC
(In reply to comment #3)
> The summary was ambiguous; we already allow redirects to non-existent pages.
> Here's my suggestion for a summary.

Well, it's a moot point whether we "allow" them; they are currently treated as
normal pages, with no special handling. But I see your point.
Comment 5 Wil Mahan 2004-10-02 23:34:39 UTC
To do this, we'd need to check every link to see if it is a redirect
(right now, this happens for users with a stub length threshold
set), and check whether the targets of the redirects exist. I
don't think it's worth it, especially without a clear consensus
for the change.
Comment 6 Brion Vibber 2005-03-26 23:11:04 UTC
*** Bug 1756 has been marked as a duplicate of this bug. ***
Comment 7 Michael Hardy 2005-03-29 03:03:44 UTC
Some of the reasons why PRE-EMPTIVE REDIRECTS ARE IMPORTANT:

It is important to abolish what some have treated as a policy
requiring deletion of redirects whose targets do not exist, which
they have called "broken" redirects.  Such pre-emptive redirects
are valuable and important for a variety of related reasons:

* [[complex societies]] redirects to [[complex society]].  The latter
is the appropriate title.  This pre-emptive redirect avoids a future
situation in which two separate articles exist that should be merged,
their authors being unable to cooperate because neither suspects the
other's existence.

* [[Eastern Sudanic]] redirects to [[Eastern Sudanic langauages]].
The latter title is appropriate as the article title (WITH the plural;
this is an exception to the rule that article titles should be singular
for the same reason that applies to [[Germanic languages]], [[Romance
languages]], [[Slavic languages]], etc.).  The term "Eastern Sudanic"
is a standard and appropriate abbreviation in the contexts in which it
often appears, but the article title should not be abbreviated.  Again,
this is a valuable pre-emptive redirect because it avoids a future
situation in which two separate articles exist that should be merged,
their authors being unable to cooperate because neither suspects the
other's existence.

* A misnomer redirects to a correct term.  In some cases, this is a valuable
pre-emptive redirect for the same reason.  In some other cases, a misnomer may
be a better tite; such a decision requires understanding of the subject and
should be discussed before any proposed deletion is done.  In many cases, this
is a valuable pre-emptive redirect because it avoids a future situation in which
two separate articles exist that should be merged, their authors being unable to
cooperate because neither suspects the other's existence.
Comment 8 peter green 2005-03-29 03:07:30 UTC
mmm though if you are going to the trouble of putting a redirect in you may as
well create a stub while you are at it anyway...
Comment 9 Michael Hardy 2005-03-30 01:09:10 UTC
> if you are going to the trouble of putting a redirect
> in you may as well create a stub while you are at it anyway...


That often cannot be done, obviously.  I know enough to know
that ''Eastern Sudanic'' should redirect to ''Eastern Sudanic
languages'', but I cannot write even a stub on that topic.
A person who knows (from having read a variety of instances)
that ''coupled harmonic oscillator'' is not one of those terms
that are always plural, and could therefore pre-emptively
redirect the plural to the singular, may not know whether the
topic is physics or music or New-Age philosophy, and so could
not possibly write that stub. ~~~~
Comment 10 Michael Hardy 2005-03-30 03:49:09 UTC
Another thing to consider:

Even if one takes the wrong-headed view that there should be no
pre-emptive redirects, the fact that they will inevitably occur
anyway makes it useful to regard this bug as a bug.  If links to
redirect pages whose targets don't exist appear red rather than
green, then people seeing those links will know that they can
write a new article, and that they should not expect to become
informed on the topic by clicking on the link.
Comment 11 Michael Hardy 2005-04-03 03:56:20 UTC
I've now noticed that both my critics and I were mistaken about what
the long-standing policy actually says.'''  What confused us was that
the emphasis in the statement of the policy was misleading.  Read the
paragraph starting with "However" after item #6 at
[[Wikipedia:Redirects for deletion]].  In view of the list of exceptions
in the paragraph beginning with "However...", I've revised item 6 at
[[Wikipedia:Redirects for deletion]] in a way that is really just a
changed in emphasis and I hope will avoid some rash deletions-without-
due-deliberation.  It now reads as follows:

:#6. If the redirect points to an article that does not exist and does
not help avoid the accidental creation of
[[Wikipedia:Duplicate articles|duplicate articles]], it can be
[[wikipedia:candidates for speedy deletion|deleted immediately]];
'''but first''' you should check whether there is an alternative place
it could be appropriately redirected, and whether any of the exceptions
noted below are applicable.
Comment 12 lɛʁi לערי ריינהארט 2005-06-15 20:52:14 UTC
regarding police on "redirects that link to non-existent pages"

There are wiki's who use these:

see [[lb:User talk:Gangleri#Redirect to nonexisting]]

Regards Reinhardt [[user:gangleri]]
Comment 13 jeroenvrp 2006-08-06 21:28:23 UTC
I strongly support the idea to have 'red links' for pages with a redirect 
to non-existing pages. It will avoid duplicate entries in the future and 
will also solve the problem with left-overs in the form of a redirect, 
after a page had been deleted.
Comment 14 Aaron Schulz 2007-05-29 21:13:58 UTC
I do like the "write a quick stub" idea. Better than having the db recursively query a bunch of crap.
Comment 15 Michael Hardy 2009-06-06 02:59:25 UTC
Within the last couple of days I created a redirect to the non-existent page [[Kervaire–Milnor formula]].  Contrary to what Aaron Schulz and others suggest, I could not reasonably have created a stub.

In the interests of morality we must remember that the present apparent policy forbidding pre-emptive redirects was not created by proper discussion and consensus, but by person who avoided the usual discussion pages and denied the existence of people who disagreed with them.

It is clear that despite the injustice of the situation, we cannot have any policy discussion aimed at abolishing the prohibition against pre-emptive redirects until this bug is fixed.

Keeping this bug unrepaired and closing this ticket are abusive ways of preventing that policy discussion from happening.

In recent hours I have written to Brion Vibber about this.

Comment 16 Michael Hardy 2009-06-06 16:20:23 UTC
Brion Vibber has replied that he will look at this.
Comment 17 matanya 2012-07-25 22:10:46 UTC
brion, did you look at this in the last 3 years? :)
Comment 18 Quim Gil 2014-04-16 03:32:29 UTC
There were two parallel discussions here. One was about (en.wiki?) policies. The other one was about software performance.

Since this is a request for MediaWiki Core, the discussion about policies is secondary, and what really matters is this:

(In reply to Wil Mahan from comment #5)
> To do this, we'd need to check every link to see if it is a redirect
> (right now, this happens for users with a stub length threshold
> set), and check whether the targets of the redirects exist. I
> don't think it's worth it, especially without a clear consensus
> for the change.

(In reply to Aaron Schulz from comment #14)
> I do like the "write a quick stub" idea. Better than having the db
> recursively query a bunch of crap.

In other words, an expensive price for what seems to be a minor feature.

This report was WONTFIXED almost a decade ago, and it was reopened because it was considered that the policy should be discussed. Looking only at the software side, this looks indeed like a WONTFIX in 2014.
Comment 19 Quiddity 2014-04-16 05:09:54 UTC
There are 3 separate issues here:

(In reply to xmlizer from comment #0)
> And in X -> Y(r) -> Z(r) -> {T}, the link in X to Y should be a red link
> because the last {T} doesn't exists

1) Double redirects. We don't do these at all, and processes exist to automatically fix them. See:
https://en.wikipedia.org/wiki/Wikipedia:Double_redirects
https://en.wikipedia.org/wiki/Special:DoubleRedirects
[Definite WONTFIX. But not seriously considered except in Comment #0.]


2) Whether we're *allowed* to create/keep Redirects to non-existent targets. At the surface this is guideline/policy issue. However, one major aspect preventing their acceptance is the confusion that would arise if one of these Redirects was linked within an article. It would look blue, but lead nowhere. Hence:


3) Whether links to Redirects to currently-non-existent targets can technically be colored red.
I.e. X -> Y(r) -> {T}, where {T} doesn't exist, the link in X to Y could be a red link. 
This would be quite useful, as Michael Hardy explains best in Comment #7. 
They're currently (on Enwiki) speedily-deleted per [[WP:CSD#G8]] (criteria for speedy deletion - General issue #8), specifically: "redirects to invalid targets, such as non-existent targets".

So, the question is:
* MediaWiki: Is there another (cheaper) method of checking if a redirect targets an existing page? 
E.g. Could editors add a template to the redirect, specifying that it's a {pre-emptive redirect}, and thus incoming links should be marked red (until that template is removed)?
Or something else?
Comment 20 Quim Gil 2014-04-16 05:50:19 UTC
A template to style the link, added by the editors manually. Interesting. This might be the way to go.

In any case this would be a WONTFIX from a MediaWiki Core point of view.
Comment 21 Daniel Friesen 2014-04-16 06:32:40 UTC
Why would this feature be WONTFIX from a core point of view?

We're already doing DB test to see if a page exists. And redirect information is already stored relatively cheaply in the database. What is stopping us from having a simple option that traverses one level of redirects when doing page existence checks?
Comment 22 Quim Gil 2014-04-16 13:43:35 UTC
I was just trying to interpret the opinions of Wil and Aaron posted years ago. I'm happy to be proven wrong.

Is this an EASY report, after all?
Comment 23 Daniel Friesen 2014-04-16 18:59:49 UTC
It requires a bit of knowledge of our database schema plus it requires looking through our sanity sapping parser, so I wouldn't consider it "easy".
But it should be reasonably implementable.

At the very least I don't see any reason that implementing it would add a notable burden to the database.
Comment 24 TeleComNasSprVen 2014-05-01 16:53:04 UTC
It's possible to simply modify the code to use the same color as the links to nonexistent pages after first doing a few conditional checks, but why bother?

I think we should have broader consensus among the other wikis as well, rather than just enwiki's approval, to go ahead with this change. Some wikis like having broken redirects as blue links, so they know they exist and can fix them from Special:BrokenRedirects. Some were originally redirects to pages moved with suppressredirect, so going back through to fix them requires human intervention, not computer logic. And if it's red and someone decides to stub out the article content, we have article duplication.

Alternatively, this could perhaps be done locally via Common.css or Lua modules.
Comment 25 Quiddity 2014-05-04 17:40:32 UTC
Off-topic sidenote:
(In reply to Quiddity from comment #19)
> 1) Double redirects. We don't do these at all, and processes exist to
> automatically fix them. See:

I just discovered a current proposal to alter this: 
https://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28idea_lab%29#Allow_some_double_redirects
based on discussion at 
https://en.wikipedia.org/wiki/Wikipedia_talk:Double_redirects#Some_double_redirects_are_good_or_MDRAG_Redux

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links