Skip to content

Commit

Permalink
search-google.html.tmpl: Calculate sitesearch from urlbase (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Jun 24, 2020
1 parent f8db696 commit a21b7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/en/default/search/search-google.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<p>

<form method="get" action="https://www.google.com/search" data-no-csrf>
<input type="hidden" name="sitesearch" value="bugzilla.mozilla.org">
<input type="hidden" name="sitesearch" value="[% urlbase.match('^([^:]*://)?(.*?)/?$').1 %]">
<nobr>
<input type="text" name="q" size="60" maxlength="255" value="">
<input type="submit" value="Search">
Expand Down

0 comments on commit a21b7bb

Please sign in to comment.