Last modified: 2014-06-24 08:10:16 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 T64343, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62343 - Gallery image with link=<internal page#section> going to top of <internal page>
Gallery image with link=<internal page#section> going to top of <internal page>
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-06 21:23 UTC by shadow
Modified: 2014-06-24 08:10 UTC (History)
3 users (show)

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


Attachments

Description shadow 2014-03-06 21:23:25 UTC
Setup:
- have Mediawiki site (Site)
- created a page (Page)
- created section on Page (Section)
- uploaded file to Site (Image.png)

The following does not appear to be working correctly:

<gallery>
File:Image.png|link=Page#Section
</gallery>

Instead of taking me to Page#Section, clicking on this image takes me to the top of Page.  Oddly, if the Page#Section is part of an external site, it seems to work (unless a caption is added)

<gallery>
File:Image.png|link=http://www.Site.com/Page#Section
</gallery>

I started a discussion prior to creating this bug report:
http://www.mediawiki.org/wiki/Help_talk:Images#Linked_images_in_gallery

I've also setup a test page on my own wiki site
http://wiki.agent-a.com/Test
Comment 1 Andre Klapper 2014-03-07 14:13:36 UTC
Thanks for taking the time to report this!

I'm not sure if I can reproduce from the steps mentioned above. Does this require JWPlayer to be installed? 
Because when I scroll down on http://wiki.agent-a.com/JWPlayer , I only see "Could not load plugins: File not found". Or I just don't understand which image I was expected to click on the test page. :(

For the records (<gallery>): https://www.mediawiki.org/wiki/Help:Images#Rendering_a_gallery_of_images
Comment 2 shadow 2014-03-07 15:31:10 UTC
Hey Andre,

There is no need to have JWPlayer installed, http://wiki.agent-a.com/JWPlayer is simply where I am directing my internal link examples.  The images to click on are all on http://wiki.agent-a.com/Test.

The first two images are outside of a <gallery></gallery>, one internal link and one external link.  These both work.

Next I have a <gallery></gallery> with three images.

The first image is an internal link.  It takes me to the top of the correct page, but it does not take me to the section of the page specified in the link (click the internal link image outside of the gallery for expected behavior).

The second image is an external link.  It works completely.

The third image is an external link to the same location as the second image.  By accident I discovered that if you add a caption to the image in the gallery, the link stops working completely.

Hopefully the only thing necessary to reproduce the error is to try clicking on all five images on http://wiki.agent-a.com/Test, and then viewing the source.

Thanks,
Andy
Comment 3 Andre Klapper 2014-03-07 16:40:16 UTC
Got it! Thanks!

Might be a duplicate report in the Parser area...
Comment 4 Gerrit Notification Bot 2014-06-23 20:46:47 UTC
Change 141569 had a related patch set uploaded by Brian Wolff:
Allow fragments in link= parameter in <gallery> tags.

https://gerrit.wikimedia.org/r/141569
Comment 5 Gerrit Notification Bot 2014-06-24 08:10:16 UTC
Change 141569 merged by jenkins-bot:
Allow fragments in link= parameter in <gallery> tags.

https://gerrit.wikimedia.org/r/141569

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


Navigation
Links