Skip to content

Commit 514bf16

Browse files
committed
Where was the broken link from?
1 parent f7bfbd1 commit 514bf16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/not-found.tsx

Lines changed: 2 additions & 1 deletion
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 = 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)