diff --git a/404.md b/404.md index 5a1f0c6b0b..f71e5400e5 100644 --- a/404.md +++ b/404.md @@ -9,9 +9,7 @@ skip_read_time: true There might be a mistake in the URL or you might've clicked a link to content that no longer exists. If you think it's the latter, please file an issue in -our [issue tracker on GitHub]({{ site.repo }}/issues/new) -and let us know what happened. Please also include a link to where the error -occurred, if applicable. +our issue tracker on GitHub. [**Click here to create a new ticket**]({{ site.repo }}/issues/new){:.newissue.button.primary-btn} @@ -21,12 +19,11 @@ occurred, if applicable. let el = document.querySelector("a.newissue"); if (el) { let url = new URL("{{ site.repo }}/issues/new"); - url.searchParams.set("title", "404 at " + window.location.pathname); - let body = "I found a broken link : " + window.location.href; - if (document.referrer !== "") { - body += "\nI arrived on this page through: " + document.referrer - } - url.searchParams.set("body", body); + url.searchParams.set("template", "broken_link.yml") + url.searchParams.set("title", "[404]: " + window.location.pathname); + url.searchParams.set("target", window.location.href); + url.searchParams.set("location", document.referrer); + url.searchParams.set("labels", "status/triage"); el.setAttribute("href", url.toString()); } diff --git a/_layouts/docs.html b/_layouts/docs.html index cca1d264e8..13ac5175f4 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -8,7 +8,7 @@ {%- if page.issue_url -%} {%- assign issue_url = page.issue_url -%} {%- else -%} - {% capture issue_url %}{{ site.repo }}/issues/new?body=File: [{{ page.path }}]({{ site.docs_url }}{{ page.url }}){% endcapture %} + {% capture issue_url %}{{ site.repo }}/issues/new?template=doc_issue.yml&location={{ site.docs_url }}{{ page.url }}&labels=status%2Ftriage{% endcapture %} {%- endif -%} --> {%- include head.html -%} diff --git a/develop/dev-best-practices.md b/develop/dev-best-practices.md index ea3ccc76d5..1e54a3f339 100644 --- a/develop/dev-best-practices.md +++ b/develop/dev-best-practices.md @@ -7,7 +7,7 @@ keywords: application, development The following development patterns have proven to be helpful for people building applications with Docker. If you have discovered something we should add, -[let us know]({{ site.repo }}/issues/new){: target="_blank" rel="noopener" class="_"}. +[let us know]({{ site.repo }}/issues/new?template=doc_issue.yml&labels=status%2Ftriage){: target="_blank" rel="noopener" class="_"}. ## How to keep your images small