]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1497077 followup - Convert links to absolute path
authorKohei Yoshino <kohei.yoshino@gmail.com>
Sat, 20 Oct 2018 05:10:28 +0000 (01:10 -0400)
committerGitHub <noreply@github.com>
Sat, 20 Oct 2018 05:10:28 +0000 (01:10 -0400)
extensions/BMO/template/en/default/pages/get_permissions.html.tmpl
extensions/Voting/template/en/default/pages/voting.html.tmpl
template/en/default/account/prefs/mfa.html.tmpl
template/en/default/admin/classifications/footer.html.tmpl
template/en/default/admin/groups/create.html.tmpl
template/en/default/bug/edit.html.tmpl
template/en/default/bug/show-header.html.tmpl
template/en/default/global/header.html.tmpl
template/en/default/list/list.html.tmpl
template/en/default/mfa/duo/verify.html.tmpl

index 42f37583f768282ea0074189f2ad5b8f8d4569f0..e824eb17a9084c1d246149b19595d47b28c1177c 100644 (file)
@@ -17,7 +17,7 @@
   the <a href="[% basepath FILTER none %]page.cgi?id=triage_request.html">triage request form</a>.
 </p>
 
-[% editbugs = "enter_bug.cgi?assigned_to=nobody%40mozilla.org&bug_file_loc=http%3A%2F%2F&bug_ignored=0&bug_severity=normal&bug_status=NEW&cf_fx_iteration=---&cf_fx_points=---&component=Editbugs%20Requests&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&defined_groups=1&flag_type-4=X&flag_type-607=X&flag_type-791=X&flag_type-800=X&flag_type-803=X&flag_type-916=X&form_name=enter_bug&maketemplate=Remember%20values%20as%20bookmarkable%20template&op_sys=Unspecified&priority=--&product=bugzilla.mozilla.org&rep_platform=Unspecified&target_milestone=---&version=Production" %]
+[% editbugs = basepath _ "enter_bug.cgi?assigned_to=nobody%40mozilla.org&bug_file_loc=http%3A%2F%2F&bug_ignored=0&bug_severity=normal&bug_status=NEW&cf_fx_iteration=---&cf_fx_points=---&component=Editbugs%20Requests&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&defined_groups=1&flag_type-4=X&flag_type-607=X&flag_type-791=X&flag_type-800=X&flag_type-803=X&flag_type-916=X&form_name=enter_bug&maketemplate=Remember%20values%20as%20bookmarkable%20template&op_sys=Unspecified&priority=--&product=bugzilla.mozilla.org&rep_platform=Unspecified&target_milestone=---&version=Production" %]
 
 <p>
   If you want <kbd>editbugs</kbd>, open a
index 5165d32c8f357b4b203ff77a72f33145a815c792..d4e8a64fa4de97c7d0970a3fd9725698e3b2093c 100644 (file)
@@ -64,6 +64,7 @@ a few [% terms.bugs %] indicating your strong support for them.
 on [% terms.bugs %] you vote for.</p>
 
 <p>You may review your votes at any time by clicking on the "<a href=
-"page.cgi?id=voting/user.html">My Votes</a>" link in the page footer.</p>
+"[% basepath FILTER none %]page.cgi?id=voting/user.html">My Votes</a>" link in
+the page footer.</p>
 
 [% INCLUDE global/footer.html.tmpl %]
index 27c17aa4ef7d4a68995e62aa18685186d09de080..4f2bc3d1e8471bdcf3254fbde33fcf5d5f5552d2 100644 (file)
     <div id="mfa-enable-totp" style="display:none">
 
       <div id="mfa-totp-throbber">
-        Generating new QR code.. <img src="../../images/throbber.gif" width="16" height="11">
+        Generating new QR code.. <img src="[% basepath FILTER none %]images/throbber.gif" width="16" height="11">
       </div>
 
       <div id="mfa-totp-issued" style="display:none">
index 647430ecf2d72f31187e835c77b70786f1760b86..c230fa9303e473f2c6c9c34840d739e6e14031ae 100644 (file)
@@ -20,5 +20,5 @@
 
 [% PROCESS global/variables.none.tmpl %]
 
-<p>Back to the <a href="./">main [% terms.bugs %] page</a>
+<p>Back to the <a href="[% basepath FILTER none %]">main [% terms.bugs %] page</a>
 or <a href="[% basepath FILTER none %]editclassifications.cgi"> edit</a> more classifications.</p>
index f05a4dc01fa7ecb2ff6e4afdb58aefed0df233ee..09e3fdb027fb374ade2c4a5db8e348ca377327af 100644 (file)
@@ -116,7 +116,7 @@ products. Unchecking the "Insert new group into all existing
 products" option will prevent this and make the group become
 visible only when its controls have been added to a product.</p>
 
-<p>Back to the <a href="./">main [% terms.bugs %] page</a>
+<p>Back to the <a href="[% basepath FILTER none %]">main [% terms.bugs %] page</a>
 
 or to the <a href="[% basepath FILTER none %]editgroups.cgi">group list</a>.
 
index e916d705ebc2ef917ab0cc0a3b8e9f940df9e7a2..6d629a3fecb3cadc5ca51afbff39ddad4ac7822d 100644 (file)
        [% INCLUDE bug/field.html.tmpl
             bug = bug, field = bug_fields.product,
             override_legal_values = bug.choices.product
-            desc_url = 'describecomponents.cgi', value = bug.product
+            desc_url = basepath _ 'describecomponents.cgi', value = bug.product
             editable = bug.check_can_change_field('product', 0, 1) %]
     </tr>
 
       [% INCLUDE bug/field.html.tmpl
           bug = bug, field = bug_fields.component, value = bug.component
           override_legal_values = bug.choices.component
-          desc_url = "describecomponents.cgi?product=$bug.product"
+          desc_url = basepath _ "describecomponents.cgi?product=$bug.product"
           editable = bug.check_can_change_field('component', 0, 1)
       %]
     </tr>
index 6308098b53586deee073addac1600e27ec5a1f5a..7cf6e963fc6ce061a52020f483ec321f6c46e52f 100644 (file)
@@ -55,7 +55,7 @@
       if(!document.location.href.match(/show_bug\.cgi/)) {
         history.replaceState( null,
                              "[% unfiltered_title FILTER js %]",
-                             "show_bug.cgi?id=[% bug.bug_id FILTER js %]" );
+                             "[% basepath FILTER js %]show_bug.cgi?id=[% bug.bug_id FILTER js %]" );
         document.title = "[% unfiltered_title FILTER js %]";
       }
       if (document.location.href.match(/show_bug\.cgi\?.*list_id=/)) {
index a219a0274977bbed9d3e308724904125c2e4792e..d74ef6f6690afefdbabe30a9ecb573a8add7ca89 100644 (file)
 
     [%# Required for the 'Autodiscovery' feature in Firefox 2 and IE 7. %]
     <link rel="search" type="application/opensearchdescription+xml"
-                       title="[% terms.BugzillaTitle %]" href="./search_plugin.cgi">
+                       title="[% terms.BugzillaTitle %]" href="[% basepath FILTER none %]search_plugin.cgi">
     [% IF allow_mobile && is_mobile_browser %]
       <meta name="viewport" content="width=device-width, initial-scale=1">
     [% END %]
 
 <header id="header" role="banner">
   <div class="inner">
-    <h1 id="header-title" class="title"><a href="./" title="Go to home page">[% terms.Bugzilla %]</a></h1>
+    <h1 id="header-title" class="title"><a href="[% basepath FILTER none %]" title="Go to home page">[% terms.Bugzilla %]</a></h1>
     <form role="search" id="header-search" class="quicksearch" action="[% basepath FILTER none %]buglist.cgi" data-no-csrf>
       <section class="searchbox-outer dropdown" role="combobox" aria-expanded="false" aria-haspopup="listbox"
                aria-owns="header-search-dropdown">
index 3053e2f73f1b2807e6fe1c29eeff9cf846391b76..250e3a64098af64beb56d9be112ae4f48114b873 100644 (file)
@@ -49,7 +49,7 @@
   title = title
   generate_api_token = dotweak
   style = style
-  atomlink = "buglist.cgi?$urlquerypart&title=$url_filtered_title&ctype=atom"
+  atomlink = basepath _ "buglist.cgi?$urlquerypart&title=$url_filtered_title&ctype=atom"
   javascript_urls = [ "js/util.js", "js/field.js" ]
   style_urls = [ "skins/standard/buglist.css" ]
   doc_section = "query.html#list"
index f3f49657a45f2c43ea46218427e160b198a53e38..309404da13ea8cd9c81ae3dd3d6004fa72d0d88f 100644 (file)
@@ -37,7 +37,7 @@ $(function() {
 [% css = BLOCK %]
 
   #duo_container {
-    background: #fff url(../../images/throbber.gif) 10px 10px no-repeat;
+    background: #fff url([% basepath FILTER none %]images/throbber.gif) 10px 10px no-repeat;
     width: 620px;
     height: 330px;
     border: 1px solid #000;