Page MenuHomePhabricator

Wrong picture linking
Closed, ResolvedPublic

Description

Author: nyan_dog

Description:
If you use the mobile interface and you click on a picture with a description and without the "thumb" attribute, e. g. "[[File:787 First Flight.jpg|ABC]]", you will get to the page named in the description, here "ABC".

Instead of that, you should get to the file description page, here "File:787 First Flight.jpg", like in the normal web interface.


Version: unspecified
Severity: normal

Details

Reference
bz43539

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:14 AM
bzimport set Reference to bz43539.

There seems to be some link hijacking going on.
https://gerrit.wikimedia.org/r/42131 takes care of it.

Stupid question: why does the hijackLinks function exist?

Not a stupid question at all MZ.

In the beta version of the mobile site we have an experimental feature which loads articles via ajax using the javascript history api to maintain the address bar. This makes the mobile site feel more responsive and app like.

It however leaked out of the beta into the stable version of the site which was bad.