Skip to content

Commit c822ab4

Browse files
benjiedimaMachina
andauthored
Add referrer to "Found broken link" issue template (#1810)
Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent 5680ad5 commit c822ab4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/not-found.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export default function Page() {
1313
name: "graphql.github.io",
1414
}
1515

16-
const title = `Found broken \`${mounted ? pathname?.replace(/\/$/, "") : ""}\` link. Please fix!`
16+
const referrer = mounted && document.referrer
17+
const title = `Found broken \`${mounted ? pathname?.replace(/\/$/, "") : ""}\` link${referrer ? ` from \`${referrer}\`` : ""}. Please fix!`
1718
const labels = "bug"
1819

1920
const url = `${repo.origin}/${repo.owner}/${

0 commit comments

Comments
 (0)