summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorVladimir Panteleev <github.private@thecybershadow.net>2018-04-08 18:12:10 +0200
committerDylan William Hardison <dylan@hardison.net>2018-04-08 18:12:10 +0200
commit0e38837769d082d4424a56ada88c83362524627c (patch)
tree572b3a2018a8c2b6f1f822145c585206cbfc4fe1 /template/en/default
parentf786d42447d8515d5fb2fdd821c2635f95cbe1bf (diff)
downloadbugzilla-0e38837769d082d4424a56ada88c83362524627c.tar.gz
bugzilla-0e38837769d082d4424a56ada88c83362524627c.tar.xz
search-google.html.tmpl: Calculate sitesearch from urlbase (#20)
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/search/search-google.html.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/en/default/search/search-google.html.tmpl b/template/en/default/search/search-google.html.tmpl
index 7fdc1daaa..1b07320ce 100644
--- a/template/en/default/search/search-google.html.tmpl
+++ b/template/en/default/search/search-google.html.tmpl
@@ -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">