Skip to content

Commit

Permalink
Add referrer to "Found broken link" issue template (#1810)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
  • Loading branch information
benjie and dimaMachina authored Nov 1, 2024
1 parent 5680ad5 commit c822ab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export default function Page() {
name: "graphql.github.io",
}

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

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

0 comments on commit c822ab4

Please sign in to comment.