Last modified: 2010-05-15 15:37:59 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 T2710, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 710 - Redirect to category page doesn't work
Redirect to category page doesn't work
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.5.x
All All
: Normal normal with 19 votes (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
: 100 1158 2945 5226 (view as bug list)
Depends on:
Blocks: 3311 786 1103
  Show dependency treegraph
 
Reported: 2004-10-14 08:27 UTC by Serge van den Boom
Modified: 2010-05-15 15:37 UTC (History)
11 users (show)

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


Attachments

Description Serge van den Boom 2004-10-14 08:27:05 UTC
'#REDIRECT [[:Category:Some_Category]]' does not work.
Comment 1 Antoine "hashar" Musso (WMF) 2004-11-13 21:30:41 UTC
this is fixed in cvs. Please test it on http://test.wikipedia.org/
Comment 2 Serge van den Boom 2004-11-13 22:05:20 UTC
The page redirected to shows up now, but not the articles in it.
Compare [[:Category:Disambiguation]] (some random category I redirected to) on the test wiki to [[Redirect_to_category]].

Comment 3 Antoine "hashar" Musso (WMF) 2004-11-13 22:07:57 UTC
Well done :o) We have to change the namespace of the article
object when we follow a redirect.
Comment 4 Brion Vibber 2004-12-11 23:44:14 UTC
Removing fixed-in-cvs keyword, since this still fails in 1.4.
Comment 5 Daniel Kinzler 2004-12-15 00:59:32 UTC
Just tested on test.wikipedia.org: the image redirect behaviour is still broken
as described in Bug #1103.
Comment 6 Brion Vibber 2004-12-23 05:06:49 UTC
*** Bug 1158 has been marked as a duplicate of this bug. ***
Comment 7 Kevin D. Keck 2005-01-19 00:58:11 UTC
*** Bug 100 has been marked as a duplicate of this bug. ***
Comment 8 Egil Kvaleberg 2005-01-27 11:45:43 UTC
Redirect of categories works per se, both with and without the initial colon.

But when you get to the redirected article itself, the category list does not
appear. 
Comment 9 Brion Vibber 2005-02-06 03:21:13 UTC
*** Bug 1476 has been marked as a duplicate of this bug. ***
Comment 10 peter green 2005-02-06 03:48:03 UTC
Bug 1476 is NOT a duplicate of this one.

test.wikipedia.org seems to have dissapeared!

i have set up a series of test pages on the commons (since that seems to be the
wiki that needs redirects to categories most) to gauge the current status of
this issue.

http://commons.wikimedia.org/wiki/Testredirectpagetopage (works fine)
http://commons.wikimedia.org/wiki/Testredirectpagetocat (shows title section of
category but not contents)
http://commons.wikimedia.org/wiki/Testredirectpagetoimage (shows image
description but the image itself image links or image history)

http://commons.wikimedia.org/wiki/Image:Testredirectimagetopage (works fine)
http://commons.wikimedia.org/wiki/Image:Testredirectimagetocat (shows title
section of category but not contents)
http://commons.wikimedia.org/wiki/Image:Testredirectimagetoimage (shows image
discription and image links section works but the image itself and the image
history are not there)

http://commons.wikimedia.org/wiki/Category:Testredirectcattopage (works fine)
http://commons.wikimedia.org/wiki/Category:Testredirectcattocat  (works fine)
http://commons.wikimedia.org/wiki/Testredirectpagetoimage (shows image
description but the image itself image links or image history)

so it seems that right now we can redirect from anything to a page and from a
category to a category and it will work right but everything else is broken.
Comment 11 Aphaia 2005-03-11 18:54:05 UTC
well, if a category:YY contains "#redirect[[:Category:XX]] "can work and we
reach the target category, but there the page tagged with category:YY cannot be
listed in Category:XX, so redirection itself don't solve the problem perfectly
imo. I wonder we could get the tagged with the former category in the latter
category too, or it is not feasible. 
Comment 12 Richard J. Holton 2005-03-11 20:36:33 UTC
(In reply to comment #11)
It's technologically feasible. Whether it's practical is another question...

Just to clarify: if a user navigates directly to Category:XX, then only pages in
category XX would be listed, but if a user navigates to Category:YY and is
redirected to Category:XX, pages in either category are displayed. Or would you
always want pages in either category displayed, regarless of how one navigates
there? The former sounds potentially confusing to the user. The latter could get
crazy.

I had thought a bit about a "Merge Category" special page, but this would
require actual changes to the text of pages where the category name is changed
-- something I think we want to stay away from.
Comment 13 Jeroen Roos 2005-05-22 13:47:06 UTC
This change works for me:
diff Article.php.orig Article.php
389c389
<                                               if ( $rt->getNamespace() ==
NS_SPECIAL ) {
---
>                                               if ( $rt->getNamespace() !=
$this->mNamespace ) {
Comment 14 Antoine "hashar" Musso (WMF) 2005-06-27 03:28:38 UTC
back around, will try to have a close look at this
old bug ( see #100 as well :p ).
Comment 15 Brion Vibber 2005-07-24 00:03:02 UTC
*** Bug 2945 has been marked as a duplicate of this bug. ***
Comment 16 Antoine "hashar" Musso (WMF) 2005-08-11 05:26:43 UTC
I commited a patch for index.php that check if the page redirect
to something and if so fix the namespace if it's different.
Seems to solve the issue with redirect from main namespace to a
category page.

Still have to fix it when a page redirect to an image (image
is actually not showing).
Comment 17 Antoine "hashar" Musso (WMF) 2005-08-11 05:33:05 UTC
The image issue is bug 786
Comment 18 Sider 2005-08-17 09:21:20 UTC
'#REDIRECT [[:Category:Some_Category]]' from an article to a category redirects
to the right page, but entries of this category are missing. With a click on
register category on this page you get the entries.

Comment 19 Antoine "hashar" Musso (WMF) 2005-08-17 10:38:14 UTC
(In reply to comment #18)
> '#REDIRECT [[:Category:Some_Category]]' from an article to a category redirects
> to the right page, but entries of this category are missing. With a click on
> register category on this page you get the entries.

And it's fixed in cvs. Not sure if I should commit it back to 1.5.

Comment 20 Laurence 'GreenReaper' Parry 2005-08-17 13:24:05 UTC
It'd be nice to have. We make heavy use of categories for their convenience, and
would like to redirect (eg) Conventions to Category:Conventions so we don't have
to type out [[:Category:Conventions|conventions]] all the time, but we can't do
that until the fix is in.
Comment 21 Fabian Zeindl 2005-08-23 11:58:59 UTC
We use this too heavily. Why don't you want to commit it back?
Comment 22 Kevin Slamaker 2005-10-04 03:05:03 UTC
Another issue relating to this. Not only does redirecting from an Article to a Category not display the list of 
sub-categories, but if there is a discussion page associated with the category it is not showing up. I believe 
that while the redirect occurred, it still thinks it is back at the previous article (and that previous article 
didn't have a discussion).

This would then make sense, as the engine believes it is rendering an article (after all that was the type of 
page being loaded), but once redirected it does not need to list any sub-categories because it is still under 
the assumption its the "original" article it is rendering (despite the content being that of the destination).
Comment 23 james 2005-10-18 02:43:33 UTC
Is there an update on the status of this bug?
Comment 24 james 2005-10-18 03:25:23 UTC
It seems to be working fine in wikipedia.org, however my mediawiki site v1.5.0
does not seem to work.

see working at wikipedia.org
http://en.wikipedia.org/w/index.php?title=Flamenco_singers&redirect=no
http://en.wikipedia.org/wiki/Flamenco_singers
Comment 25 james 2005-10-18 03:26:35 UTC
It seems to be working fine in wikipedia.org, however my mediawiki site v1.5.0
does not seem to work.

see working at wikipedia.org
http://en.wikipedia.org/w/index.php?title=Flamenco_singers&redirect=no
http://en.wikipedia.org/wiki/Flamenco_singers
Comment 26 peter green 2005-10-18 07:45:16 UTC
iirc its fixed in current cvs and on the wikimedia sites but not in the 1.5.x
branch atm i dunno if they are going to bother backporting it or not.
Comment 27 Christian Sieber 2005-10-25 21:37:54 UTC
Let's assume I am fairly new at MediaWiki administration, but that we need the
display of subcategories on redirect. What files should I get from CVS and
replace in my install to fix this?
Comment 28 james 2005-10-25 22:32:37 UTC
I got it to work by replacing index.php with version 1.101 from the CVS repository.
It doesn't seem to have broken anything else.....yet.

http://www.wikipubs.com
Comment 29 Stéphane Thibault 2006-01-07 21:34:39 UTC
Just reporting that I installed a personal wiki with the 1.5.4 version and I still experience the same problem more than 2 months after the last post. But it was the holidays so... : )
Comment 30 lɛʁi לערי ריינהארט 2006-01-08 14:05:08 UTC
Hallo!

The actual summary of this bug relates to "categories" only:
Bug 710: Redirect to category page doesn't work

However the actual "Blocks" list of this bug contains:
Bug 786: Redirect on an image description page redirects, but the target page
displays the image
Bug 1103: When redirecting to an image description page, the redirect works but
the image is not show.

There is also
Bug 709: Cannot rename/move images and other media files.
and
Bug 4470: Need to refer to a single image using multiple names

Please readjust dependencies. Thanks in advance!

best regards reinhardt [[user:gangleri]]
Comment 31 dan 2006-01-09 01:18:14 UTC
(In reply to comment #27)
> Let's assume I am fairly new at MediaWiki administration, but that we need the
> display of subcategories on redirect. What files should I get from CVS and
> replace in my install to fix this?

I'm in the same boat, but moreso -- how do I get files from the CVS?
Comment 32 dan 2006-01-09 01:19:23 UTC
(In reply to comment #27)
> Let's assume I am fairly new at MediaWiki administration, but that we need the
> display of subcategories on redirect. What files should I get from CVS and
> replace in my install to fix this?

I'm in the same boat, but moreso -- how do I get files from the CVS?
Comment 33 Rob Church 2006-01-09 01:23:17 UTC
(In reply to comment #32)
> I'm in the same boat, but moreso -- how do I get files from the CVS?

http://www.mediawiki.org/wiki/Download_from_CVS
Comment 34 Brion Vibber 2006-02-05 18:45:53 UTC
Fixed last monthish.
Comment 35 brianna.laugher 2006-02-23 03:40:18 UTC
Is this completely fixed? Doing a category RDR to a category works as far as the
link goes, but an image in the bad category doesn't appear in the better one. I
put [[commons:Image:Example.jpg]] in  [[:commons:Category:Badcategoryname]],
then tried to make it a RDR to [[:commons:Category:Goodcategoryname]]. Should we
just stick to {{category redirect}}? 
Comment 36 Brion Vibber 2006-02-23 20:41:54 UTC
That's a separate issue.
Comment 37 Christopher Beland 2006-02-23 23:21:51 UTC
Specifically, that's Bug 3311: Automatic category redirects
Comment 38 Brion Vibber 2006-03-10 19:33:33 UTC
*** Bug 5226 has been marked as a duplicate of this bug. ***

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


Navigation
Links