summaryrefslogtreecommitdiffstats
path: root/template/en/default/search
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-02-27 14:54:13 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-02-27 14:54:13 +0100
commit50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc (patch)
tree5dbaa90d673b2c6de97c4cdb869e5047f54472d5 /template/en/default/search
parentc650592f1cdb27e5605d70a80ae03e9a2afb879b (diff)
downloadbugzilla-50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc.tar.gz
bugzilla-50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc.tar.xz
Bug 730670: Do not redirect in buglist.cgi to improve performance
r=glob a=LpSolit
Diffstat (limited to 'template/en/default/search')
-rw-r--r--template/en/default/search/form.html.tmpl5
-rw-r--r--template/en/default/search/search-specific.html.tmpl7
2 files changed, 12 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.
diff --git a/template/en/default/search/search-specific.html.tmpl b/template/en/default/search/search-specific.html.tmpl
index ae6fa5e4b..1093f70bc 100644
--- a/template/en/default/search/search-specific.html.tmpl
+++ b/template/en/default/search/search-specific.html.tmpl
@@ -28,6 +28,13 @@ for "crash secure SSL flash".
<form name="queryform" method="get" action="buglist.cgi">
<input type="hidden" name="query_format" value="specific">
<input type="hidden" name="order" value="relevance desc">
+<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;
+ }
+</script>
<table summary="Search fields" class="bz_simple_search_form">
<tr>