diff options
Diffstat (limited to 'template/en/default/search/form.html.tmpl')
-rw-r--r-- | template/en/default/search/form.html.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 9b212236e..4b7ac4b07 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -8,7 +8,12 @@ [% PROCESS "global/field-descs.none.tmpl" %] +<input type="hidden" id="no_redirect" name="no_redirect" value="0"> <script type="text/javascript"> + if (history && history.replaceState) { + var no_redirect = document.getElementById("no_redirect"); + no_redirect.value = 1; + } // Hide the Advanced Fields by default, unless the user has a cookie // that specifies otherwise. |