summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-04-26 22:41:25 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-04-26 22:41:25 +0200
commitf62eb58583ae7cb62f68bcd548ebf55e3f9582d1 (patch)
treeb65ae1a9e5da207de2092cd98e2a3dbad6f29512 /template
parent0958cd4a0378e761d378c0adc45e11a2be243f8c (diff)
downloadbugzilla-f62eb58583ae7cb62f68bcd548ebf55e3f9582d1.tar.gz
bugzilla-f62eb58583ae7cb62f68bcd548ebf55e3f9582d1.tar.xz
Bug 652748: When reloading a bug page, any comment ID (#nn) appended to the URL is lost
r=dkl a=LpSolit
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/show-header.html.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl
index 9619422ef..f424a80f3 100644
--- a/template/en/default/bug/show-header.html.tmpl
+++ b/template/en/default/bug/show-header.html.tmpl
@@ -32,14 +32,14 @@
[% subheader = filtered_desc %]
[% filtered_timestamp = bug.delta_ts FILTER time %]
[% title = "$terms.Bug $bug.bug_id &ndash; $filtered_desc" %]
-[% unfiltered_title = "$terms.Bug $bug.bug_id – $bug.short_desc" %]
[% header = "$terms.Bug&nbsp;$bug.bug_id" %]
[% header_addl_info = "Last modified: $filtered_timestamp" %]
[% yui = ['autocomplete', 'calendar'] %]
[% javascript_urls = [ "js/util.js", "js/field.js" ] %]
-[% IF ! Bugzilla.cgi.url.match("show_bug.cgi") && bug.defined %]
+[% IF bug.defined %]
+ [% unfiltered_title = "$terms.Bug $bug.bug_id – $bug.short_desc" %]
[% javascript = BLOCK %]
- if( history && history.replaceState ) {
+ if( !document.location.href.match(/show_bug\.cgi/) && history && history.replaceState ) {
history.replaceState( null,
"[% unfiltered_title FILTER js %]",
"show_bug.cgi?id=[% bug.bug_id FILTER js %]" );