Last modified: 2014-08-19 23:38:26 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 T38002, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36002 - Mobile view fails for two-level domain names like multilingual wikisource (http://wikisource.org)
Mobile view fails for two-level domain names like multilingual wikisource (ht...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Tomasz W. Kozlowski
: shell
: 37554 (view as bug list)
Depends on:
Blocks: Wikisource
  Show dependency treegraph
 
Reported: 2012-04-16 04:52 UTC by Doug
Modified: 2014-08-19 23:38 UTC (History)
9 users (show)

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


Attachments

Description Doug 2012-04-16 04:52:16 UTC
The mobile view doesn't function for the multilingual wikisource (http://wikisource.org).  Tested with Safari on iPhone 4 and in FF 11.0 on MacBook.
Comment 1 Sam Reed (reedy) 2012-04-16 09:59:15 UTC
https://wikisource.org/wiki/Main_Page?useformat=mobile

Are you meaning it only displays "This homepage needs to be configured. Read more here"?
Comment 2 Doug 2012-04-16 12:02:39 UTC
(In reply to comment #1)
> https://wikisource.org/wiki/Main_Page?useformat=mobile
> 
> Are you meaning it only displays "This homepage needs to be configured. Read
> more here"?

Hmm, actually I had not run into that.  No, if you choose "Mobile view" link at the bottom of the page you get a Server Not Found error ("Firefox can't find the server at wikisource.m.org."): https://wikisource.m.org./w/index.php?title=Main_Page&mobileaction=toggle_view_mobile 

On a mobile device (specifically an iPhone 4) you get a Cannot Open Page error: "Safari cannot open the page because the server cannot be found"
Comment 3 Jon 2012-04-16 14:32:05 UTC
The link that is being created to the mobile view is wrong:
https://wikisource.m.org./w/index.php?title=Main_Page&mobileaction=toggle_view_mobile

Note the . after org
Also I'm pretty sure the domain is not m.org

Whatever creates that link is doing something strange...
Comment 4 Doug 2012-04-16 14:56:35 UTC
Is that because it's expecting langcode.m.X.org format, where X is the project, per http://meta.wikimedia.org/wiki/Mobile_Projects/Mobile_Gateway?

Unlike most projects, wikisource.org is a live project without a langcode (see Bug 32189), www.wikisource.org is merely a redirect to wikisource.org.  So is it trying to treat "wikisource" as the langcode and "org" as the X (i.e. the project) and it expects a follow-on TLD after the final dot?
Comment 5 Doug 2012-04-17 08:22:30 UTC
I have changed the summary again because 1) this has to do with the *entire* multilingual wikisource site, not just the mainpage and 2) I've looked at this further with enomil and it does not appear to be a broken link as such, the mobilefrontend cannot handle a domain name that has only two levels as is the case with http://wikisource.org but rather does exactly as I've noted in Comment 4, above.
Comment 6 enomil 2012-06-13 17:37:05 UTC
*** Bug 37554 has been marked as a duplicate of this bug. ***
Comment 7 Jon 2012-10-19 20:09:18 UTC
MaxSem: jdlrobson, it expects a different $wgMobileUrlTemplate
jdlrobson: MaxSem: where is that defined in LocalSettings?
MaxSem: operations/mediawiki-config. I guess the problem is that no mobile domain is set for oldwikisource
[1:04pm] MaxSem: and there's no redirection
Comment 8 Tomasz W. Kozlowski 2013-10-24 10:01:27 UTC
Fixing $wgMobileUrlTemplate for this wiki is rather easy, the true problem lies with bug 29364, as the mobile redirect is not implemented.

I'll submit a patch in a moment, and will close this bug once it's merged; from then on, please refer to bug 29364.
Comment 9 Gerrit Notification Bot 2013-10-24 10:07:27 UTC
Change 91586 had a related patch set uploaded by Odder:
(bug 36002) Configure $wgMobileUrlTemplate for sourceswiki

https://gerrit.wikimedia.org/r/91586
Comment 10 Gerrit Notification Bot 2013-10-24 19:51:11 UTC
Change 91586 merged by jenkins-bot:
(bug 36002) Configure $wgMobileUrlTemplate for sourceswiki

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

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


Navigation
Links