@@ -9,9 +9,7 @@ skip_read_time: true
9
9
10
10
There might be a mistake in the URL or you might've clicked a link to content
11
11
that no longer exists. If you think it's the latter, please file an issue in
12
- our [ issue tracker on GitHub] ({{ site.repo }}/issues/new)
13
- and let us know what happened. Please also include a link to where the error
14
- occurred, if applicable.
12
+ our issue tracker on GitHub.
15
13
16
14
[ ** Click here to create a new ticket** ] ({{ site.repo }}/issues/new){:.newissue.button.primary-btn}
17
15
@@ -21,12 +19,11 @@ occurred, if applicable.
21
19
let el = document .querySelector (" a.newissue" );
22
20
if (el) {
23
21
let url = new URL (" {{ site.repo }}/issues/new" );
24
- url .searchParams .set (" title" , " 404 at " + window .location .pathname );
25
- let body = " I found a broken link : " + window .location .href ;
26
- if (document .referrer !== " " ) {
27
- body += " \n I arrived on this page through: " + document .referrer
28
- }
29
- url .searchParams .set (" body" , body);
22
+ url .searchParams .set (" template" , " broken_link.yml" )
23
+ url .searchParams .set (" title" , " [404]: " + window .location .pathname );
24
+ url .searchParams .set (" target" , window .location .href );
25
+ url .searchParams .set (" location" , document .referrer );
26
+ url .searchParams .set (" labels" , " status/triage" );
30
27
el .setAttribute (" href" , url .toString ());
31
28
}
32
29
</script >
0 commit comments