Page MenuHomePhabricator

Search not working correctly on the "Database error" page (Google sitesearch doesn't support protocol relative urls)
Closed, ResolvedPublic


Both the domains and the sitesearch query parameters are currently protocol-relative. Google only allows naked hostnames or full hostnames with protocol.

We should probably be passing the canonical server there.


<!-- SiteSearch Google -->
<form method="get" action="" id="googlesearch">
<input type="hidden" name="domains" value="" />
<input type="hidden" name="num" value="50" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="hidden" name="oe" value="UTF-8" />

<input type="text" name="q" size="31" maxlength="255" value="" />
<input type="submit" name="btnG" value="Search" />


<input type="radio" name="sitesearch" id="gwiki" value="//" checked="checked" /><label for="gwiki">Wikimedia Commons</label>
<input type="radio" name="sitesearch" id="gWWW" value="" /><label for="gWWW">WWW</label>


<!-- SiteSearch Google -->

Example url from submitting "test" with "Commons Wikimedia":

(which just searches the entire web)

Version: 1.19
Severity: normal