Last modified: 2014-07-22 01:11: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 T35928, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33928 - HTML page title should say we are looking at a diff
HTML page title should say we are looking at a diff
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
1.20.x
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nischay Nahata
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-24 17:10 UTC by Dan Jacobson
Modified: 2014-07-22 01:11 UTC (History)
4 users (show)

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


Attachments
Adds the required title (1005 bytes, patch)
2012-03-15 02:46 UTC, Nischay Nahata
Details
added msg documentation (2.48 KB, patch)
2012-03-21 15:38 UTC, Nischay Nahata
Details

Description Dan Jacobson 2012-01-24 17:10:16 UTC
Don't you think the HTML titles should mention that we are looking at a diff,
not the page itself?

Title:          台南市消防局 - 台掃
URL:            http://radioscanningtw.jidanni.org/index.php?title=%E5%8F%B0%E5%8D%97%E5%B8%82%E6%B6%88%E9%98%B2%E5%B1%80

Title:          台南市消防局 - 台掃
URL:            http://radioscanningtw.jidanni.org/index.php?title=%E5%8F%B0%E5%8D%97%E5%B8%82%E6%B6%88%E9%98%B2%E5%B1%80&diff=5528&oldid=5523

You do this for the history, why not the diff?

Title:          Revision history of "台南市消防局" - 台掃
URL:            http://radioscanningtw.jidanni.org/index.php?title=%E5%8F%B0%E5%8D%97%E5%B8%82%E6%B6%88%E9%98%B2%E5%B1%80&curid=1413&action=history&uselang=en

How are people supposed to differentiate these in their browser history?

I didn't test to see the titles produced by any other of the buttons on
the page, however I fear the worst.
Comment 1 Nischay Nahata 2012-03-15 02:46:32 UTC
Created attachment 10238 [details]
Adds the required title

Adding the new message
I hope this helps.
Comment 2 Amir E. Aharoni 2012-03-18 16:02:49 UTC
I agree that this is a bug that should be fixed. I also didn't like that the title of the diff page is the same as of the page itself.

Patch 10238 looks good to me functionally, but:
* wfMessage() is better than wfMsg(), see https://www.mediawiki.org/wiki/New_messages_API
* setPageTitle() would be better inside showDiffPage()
* Documentation for the new message must be added in MessagesQqq.php. Please mention that it's the title of the HTML page.
* Please consider adding the message to MessagesAs.php, too :)
Comment 3 Nischay Nahata 2012-03-21 15:38:54 UTC
Created attachment 10302 [details]
added msg documentation
Comment 4 Nischay Nahata 2012-03-21 15:41:56 UTC
(In reply to comment #2)
> * wfMessage() is better than wfMsg(), see
> * setPageTitle() would be better inside showDiffPage()
> * Documentation for the new message must be added in MessagesQqq.php. Please
> mention that it's the title of the HTML page.

Did the changes you suggested

> * Please consider adding the message to MessagesAs.php, too :)
I think I don't have language support in my system right now, also I won't be good at the job I suppose
Comment 5 Amir E. Aharoni 2012-03-21 21:53:28 UTC
The patch looks good (except unnecessary whitespace on line 682).

I'll apply it after the Git migration.
Comment 6 Amir E. Aharoni 2012-03-22 00:35:25 UTC
Applied in https://gerrit.wikimedia.org/r/#change,3361 (i hope).
Comment 7 Amir E. Aharoni 2012-05-20 13:30:26 UTC
Merged.
Comment 8 Sumana Harihareswara 2012-05-20 15:41:14 UTC
Thanks, Nischay!
Comment 9 Helder 2014-07-22 01:11:26 UTC
This fix was improved on change I4803be2265b1209929ae5ba6d08c2371b0f7d759 but that improvement was reverted on change Iad2c25fbbb673ad95781b29630193bc9de97b1be.

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


Navigation
Links