Commit f62eb585 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 652748: When reloading a bug page, any comment ID (#nn) appended to the URL is lost

r=dkl a=LpSolit
parent 0958cd4a
......@@ -32,14 +32,14 @@
[% subheader = filtered_desc %]
[% filtered_timestamp = bug.delta_ts FILTER time %]
[% title = "$terms.Bug $bug.bug_id – $filtered_desc" %]
[% unfiltered_title = "$terms.Bug $bug.bug_id – $bug.short_desc" %]
[% header = "$terms.Bug $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 %]" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment