aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/list/list.html.tmpl12
1 files changed, 7 insertions, 5 deletions
diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl
index de289e3dd..c85564d27 100644
--- a/template/en/default/list/list.html.tmpl
+++ b/template/en/default/list/list.html.tmpl
@@ -43,11 +43,13 @@
[% new_param = cgi.canonicalise_query %]
[% END %]
- if (history && history.replaceState) {
- history.replaceState(null, "[% unfiltered_title FILTER js %]",
- "buglist.cgi?[% new_param FILTER js %]");
- document.title = "[% unfiltered_title FILTER js %]";
- }
+ [% IF new_param.length + 12 < constants.CGI_URI_LIMIT %]
+ if (history && history.replaceState) {
+ history.replaceState(null, "[% unfiltered_title FILTER js %]",
+ "buglist.cgi?[% new_param FILTER js %]");
+ document.title = "[% unfiltered_title FILTER js %]";
+ }
+ [% END %]
[% javascript FILTER none %]
[% END %]