Page MenuHomePhabricator

Special:Search should have descriptive <title>
Closed, ResolvedPublic

Description

Gentlemen, Google puts the item searched for in the <title>
$ GET http://www.google.com.tw/search?q=bg4wip | perl -nwe 's/.*(<title>)/$1/&&print'
<title>bg4wip - Google</title>

Why of course, how else could one pick different searches out of their browser's history?

Now we turn to MediaWiki. It's just the same
<title>Search results SITENAME<title>, no matter what string you search for.


Version: 1.12.x
Severity: enhancement

Details

Reference
bz11035

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:53 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz11035.
bzimport added a subscriber: Unknown Object (MLST).

Reverted as it was clearly never tested. Title text is double-escaped, smearing bug ugly &quot; everywhere.

Reverted again; while now functional, it just plain looks wrong since the text is duplicated between title and subtitle.

Giving up for the moment :-(

Removal of subtitle would be a bad solution too, as it "includes by default a link to the search text as a page and in some live installations has been customized with additional links" (per Brion)

rainman wrote:

Another shot at this in r38440. I believe the original poster was referring only to the HTML title, so that the title-subtitle duplication is avoided.

Thanks, Robert -- looks like a good compromise! Window/tab/bookmark title is now sane, and we've still got our nice clicky subtitle.