Topic on Extension talk:MobileFrontend

Minerva media URL's incorrect?

8
Summary by Jdlrobson

I believe this is the bug that was tracked in https://phabricator.wikimedia.org/T147738. You'll need to apply the fix.

Meambobbo (talkcontribs)

If I'm correct an image (or media) file ([[File:...]]) should convert to

  • /index.php?title=<pagetitle>#/media/File:<filename>

Instead I get

  • /index.php?title=<pagetitle>#/media/index.php%3Ftitle%3DFile%3A<filename>

Thus, when clicking the thumbnail, the full size image never loads. The progress wheel just spins and spins.

http://foobazaar.com/wikpa/index.php?title=Issues:MobileImage&useskin=minerva - example on a brand new Mediawiki installation (1.27.1) and MobileFrontend 1.0.0 (717861c).

With Minerva enabled, the image URL is incorrect, I think, and the image never loads into the media viewer. If I fix the URL it loads. The working URL matches the format that Wikipedia produces. Is this a bug? What piece/part is responsible for the URL substitution on media files?

Bmansurov (WMF) (talkcontribs)
Meambobbo (talkcontribs)

thanks, @Bmansurov (WMF), I have created a ticket here: https://phabricator.wikimedia.org/T147738

If I get some time I may be able to help track it down. Do you know what part of the code is responsible for altering the URL's as such? Also, I'm going to try to turn on lazy loading for images. Currently, I don't have that turned on.

Bmansurov (WMF) (talkcontribs)

I can't recall, but it's probably related to some config variable. Let's continue the conversation in the task.

79.59.156.40 (talkcontribs)
1.174.248.35 (talkcontribs)

the same applies for me i can reproduce the issue

  • First clear the browser history
  • Than url twh4u.ddns.net (CR)
  • Click on the large image
  • Sign in as admin
  • Click on the image of the guard

RESULT ... cbp/mwk/index.php?title=%E7%A4%BE%E5%8D%80%E4%BF%A1%E6%81%AF#/media/index.php%3Ftitle%3D%E6%AA%94%E6%A1%88%3AGuard1.jpg

the same weird #/media/index.php added

ps:i modified the source to get some extra menu's but whenever i clic on an image (without link ) this happens

                         BUT.......

Whenever i use with the mouse "open in new window" the image appears correctly !!!!

1.174.248.35 (talkcontribs)

the mod in gerrit.wikimedia.org/r/#/c/328234/2..5/resources/mobile.startup/Page.js works for me ^_^ MediaWiki 1.28.0 PHP 5.5.38 (fpm-fcgi) MariaDB 5.5.51-MariaDB MobileFrontend 1.0.0 (a0c8024) 2016年10月26日 (三) 05:14

Bmansurov (WMF) (talkcontribs)