Skip to content

Commit a21b7bb

Browse files
committed
search-google.html.tmpl: Calculate sitesearch from urlbase (#20)
1 parent f8db696 commit a21b7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/en/default/search/search-google.html.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<p>
3333

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

0 commit comments

Comments
 (0)