Page MenuHomePhabricator

Redirect on an image description page redirects, but the target page displays the image
Closed, ResolvedPublic

Description

When the description page for an image, that is present
(i.e. has not been deleted), is a redirect and a user displays it,
he gets redirected to the proper page, but at the top of the page,
the image is displayed just as if the target page was a description
page itself (while it may be not).

(See http://test.wikipedia.org/wiki/Image:Gnu-main.jpg )

This might be a feature, not a bug, but I consider it at least
surprising that clicking on an image could lead to another page with
the image displayed on top without any marking.


Version: 1.3.x
Severity: minor
URL: http://yi.wiktionary.org/w/index.php?title=pruv.png

Details

Reference
bz786

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 7:01 PM
bzimport set Reference to bz786.

I just added Bug #1103, which describes the same problem in reverse. I guess
it's the same problem that causes the behaviour described in both bug reports:
the image name is determined from the query-url *before* the redirect is
resolved. But the *effective* page name should be used to find the image file.

This is the same basic problem as with categories (bug 710); the redirect doesn't
start over fresh with a new Article (or subclass) instance, but hacks some of the data
in the current one.

mediawiki-bugzilla wrote:

I have added a simple patch to bug 710, that will probably solve this one too.

bug 710 is on it's way to get fixed. Need to have a close look at images now.

This would have been fixed by changes last monthish.

gangleri wrote:

Changing url (from the old 'test:' wiki)
http://test.wikipedia.org/wiki/Image:Gnu-main.jpg
to
http://yi.wiktionary.org/w/index.php?title=pruv.png

best regards reinhardt [[user:gangleri]]

gangleri wrote:

The example from comment #7 did not correspond to comment 0.

I think this bug should be confusing because behaviour is very iritating.

Problem:
Image A is present and image B is present and A redirects to B.

A = http://test.wikipedia.org/w/index.php?title=Image:Smile_icon.png&redirect=no
B = http://test.wikipedia.org/wiki/Image:Smiley.png

*but*
the description page of A shows the desctiption page of B
http://test.wikipedia.org/wiki/Image:Redirect_to_Smiley.png
This is basicaly what a redirect is.

However '(Redirected from Image:Redirect to Smiley.png)' could be more precise
about the existence of Media:Redirect to Smiley.png (*Media*).

*also*
http://test.wikipedia.org/wiki/User:Gangleri/tests/bugzilla/02757
contains
[[image:Smile icon.png|right|150px|conflict ;-)]] where image:Smile icon.png
redirects to image:Smiley.png

Please comment / let us know your opinion if this should be improuved.
Please reopen a separate bug if necessary.

best regards reinhardt [[user:gangleri]]