]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1479535 - BUGZILLA.bug_url is wrong on bug page after POSTed, Copy Summary doesn...
authorKohei Yoshino <kohei.yoshino@gmail.com>
Mon, 29 Oct 2018 18:28:24 +0000 (14:28 -0400)
committerDylan William Hardison <dylan@hardison.net>
Mon, 29 Oct 2018 18:28:24 +0000 (14:28 -0400)
extensions/BugModal/template/en/default/bug_modal/header.html.tmpl
extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl

index 20561c7602bce37166e02b5bed503b9da626ebaa..87dea7975b31271869180cf403f0d6d9ca0b056e 100644 (file)
@@ -92,7 +92,7 @@
   BUGZILLA.bug_id = [% bug.id FILTER none %];
   BUGZILLA.bug_title = '[% unfiltered_title FILTER js %]';
   BUGZILLA.bug_summary = '[% bug.short_desc FILTER js %]';
-  BUGZILLA.bug_url = '[% Bugzilla.cgi.self_url FILTER js %]';
+  BUGZILLA.bug_url = '[% Bugzilla.localconfig.canonical_urlbase _ "show_bug.cgi?id=" _ bug.id FILTER js %]';
   BUGZILLA.user = {
     id: [% user.id FILTER none %],
     login: '[% user.login FILTER js %]',
index 51c388d427172fe4a891ba1a5432d0ded70b2b7f..52633172bf64a2e3f9116ffdf62eb551a6f68bfc 100644 (file)
@@ -9,8 +9,8 @@
 [% USE Bugzilla %]
 <meta property="og:type" content="website">
 <meta property="og:title" content="[% title FILTER none %]">
-<meta property="og:url" content="[% Bugzilla.cgi.self_url FILTER html %]">
 [% IF bug %]
+<meta property="og:url" content="[% Bugzilla.localconfig.canonical_urlbase FILTER none %]show_bug.cgi?id=[% bug.bug_id FILTER uri %]">
 <meta property="og:description"
       content="[% bug.bug_status FILTER html %] ([% bug.assigned_to.login FILTER email FILTER html %]) in [% bug.product FILTER html %] - [% bug.component FILTER html %]. Last updated [% bug.delta_ts FILTER time('%Y-%m-%d') %].">
 [% ELSIF error_message %]