Page MenuHomePhabricator

Redirects do not work properly with Categories
Closed, ResolvedPublic


Author: timwi

Originally submitted by Nobody/Anonymous - nobody 2004-05-31 13:55

The basic functionality doesn't work; see
[[en:Category:Sports]] for example.

But there is also a more complex issue:
If Category:Sports is redirected to Category:Sport,
all the pages categorized into Category:Sports should
be listed on page Category:Sport as if they had been
categorized into Category:Sport in the first place.

  • Additional comments ------------------------

Date: 2004-07-11 16:29
Sender: SF user ssducf

Redirects in categories to work with the normal redirect
syntax. However, this adds the redirected category to the
target category too. If the extrea colon is added after the
bracket, as normally done to link to a category without
putting the current article into it, then the redirect does
not work. (There is a similar problem with category links
in the history comment.)

Also, as already mentioned, if the category is redirected,
articles can still be assigned to it, but nobody will see
them as they will not so up in the category that is the
redirect target.

Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:44 PM
bzimport set Reference to bz100.

wikibug.5.starfury wrote:

*** Bug 113 has been marked as a duplicate of this bug. ***

Ok got it fixed in cvs. Two ways to links now:

#REDIRECT [[Category:Music]]
Will add the article to the category and redirect to it.

#REDIRECT [[:Category:Music]]
Redirect but do NOT add it to the category music.

jeluf wrote:

Only second half of bug fixed by Ashar's patch.
Pages categorized into a redirected category still do not appear in the
redirection target.

Set "severity" to "enhancement".

beland wrote:

Perhaps this would be best solved by not allowing people to actually link
articles to redirected categories. This could be accomplished by giving an
error message with the suggested replacement, by automatically altering the text
right as it is saved. Alternatively, a bot could periodically clean up articles
linking to redirective categories. -B.

gangleri wrote:

It is realy a complicated issue

  • first not to include the the redirected category in the target one and
  • seccond display the articles AND subcategories from the redirected category

in the target one.
There are many possibilies which sould be handeled / disabeled:

  • putting a colon before the category
  • putting a colon xx colon before the category (as :en: for en.wikipedia)
  • redirecting to another namespace
  • redirecting to another project (another language, quotes, whatever else)

Regards Reinhardt

kdkeck wrote:

*** This bug has been marked as a duplicate of 710 ***

brianna.laugher wrote:

Is this really resolved? How should I redirect a category then?