Last modified: 2012-05-11 14:15:55 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 T35283, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33283 - Show name of Main Page (instead of URL) in history view
Show name of Main Page (instead of URL) in history view
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
Generic (Other open bugs)
3.2 (iOS) / 1.2 (Android)
All All
: Unprioritized enhancement
: 1.2 release
Assigned To: Yuvi Panda
:
: 33533 33858 33970 (view as bug list)
Depends on:
Blocks: 33855
  Show dependency treegraph
 
Reported: 2011-12-20 20:10 UTC by Steven Walling
Modified: 2012-05-11 14:15 UTC (History)
7 users (show)

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


Attachments

Description Steven Walling 2011-12-20 20:10:43 UTC
Currently the History feature of the Android application shows the home page as "http://en.m.wikipedia.org" or the relevant language code. It should instead show as "Main Page". 

Since we would need to probably expend effort on localizing the name "Main Page", it would also be very nice if there was tooltip for the W icon that told the user that clicking leads to the Main Page.
Comment 1 Brion Vibber 2011-12-22 01:10:34 UTC
Tooltip's don't really exist on touchscreen devices (and this would be a separate issue, so if further work there is needed that should be split out to a separate bug)

Getting the title right now is kinda tricky, as
* we may not have it in the URL, since we don't get redirected to the canonical page name
* we can't pull it from the <h1> since it's hidden

It might be possible to pull something from the <title>, but all that shows is "Wikipedia, the free encyclopedia" (and extracting from it is hard as we can't guarantee we know its structure in any language).

Actually there's nothing I can see that says that the page title is "Main Page" anywhere in http://en.m.wikipedia.org/



Proper fix probably looks something like this:
* fix up MobileFrontend so it *does* do the redirects, but does them correctly
* pull the URL *after* navigating, so we have the final name

This may or may not actually work depending on how the XHR stuff works though... blurf!
Comment 2 Tomasz Finc 2012-01-05 02:04:05 UTC
*** Bug 33533 has been marked as a duplicate of this bug. ***
Comment 3 Liangent 2012-01-09 23:41:53 UTC
Or show it as "[main page]" in history and let localizers translate it.
Comment 4 Sam Reed (reedy) 2012-01-21 14:07:48 UTC
*** Bug 33858 has been marked as a duplicate of this bug. ***
Comment 5 Phil Chang 2012-01-26 05:21:09 UTC
Not sure if this is that urgent, but using a localization string called Main Page is probably the best solution. Thanks, Liangent.
Comment 6 Sam Reed (reedy) 2012-01-27 10:18:23 UTC
*** Bug 33970 has been marked as a duplicate of this bug. ***
Comment 7 Phil Chang 2012-04-09 18:44:35 UTC
Looking at this again, I think what Brion meant is that MobileFrontend should show the full canonical URL:

http://en.m.wikipedia.org/wiki/Main_Page

in order to grab the words "Main Page" in the respective languages. This would identify the page as the main page and eliminate the need for localization.

Seems like this could be a fairly minor change in Mobile Frontend. Assigning to version 1.2.
Comment 8 Yuvi Panda 2012-04-09 18:49:18 UTC
1.2 is no longer dependent on MobileFrontend, and currently also has no way to show the Mobile main page (since the API does not provide a way to get the current MF main page).  I think we'll need to make this translatable.
Comment 9 Phil Chang 2012-04-09 18:58:11 UTC
Should the API provide a method to get the main page (not via MF)?

assigning to 1.2 milestone
Comment 10 Phil Chang 2012-04-09 19:11:36 UTC
Should we remove doubles in history, which tend to happen for the main page?
Comment 11 Yuvi Panda 2012-04-16 12:08:30 UTC
@Phil: Open a new bug for 'doubles'?
Comment 12 Yuvi Panda 2012-04-27 17:05:54 UTC
Talked to brion and looks like I first need to request MediaWiki:Mainpage then use that as page title. Two requests though.
Comment 13 Yuvi Panda 2012-04-30 17:54:10 UTC
https://github.com/wikimedia/WikipediaMobile/pull/223 has a data file included that has metadata about every language wiki, including the main page's name. Should be able to implement this once that is done.
Comment 14 Yuvi Panda 2012-05-11 14:15:55 UTC
Fixed in e638210c07d11ce52ee95eb8a1603c96c9db6087

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


Navigation
Links