Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add referrer to "Found broken link" issue template #1810

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Conversation

benjie
Copy link
Member

@benjie benjie commented Nov 1, 2024

@dimaMachina is this safe? Seems to work in dev.

Copy link

vercel bot commented Nov 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
graphql-github-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2024 2:41pm

@@ -13,7 +13,8 @@ export default function Page() {
name: "graphql.github.io",
}

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

This comment was marked as resolved.

src/app/not-found.tsx Outdated Show resolved Hide resolved
Co-authored-by: Dimitri POSTOLOV <[email protected]>
@benjie benjie merged commit c822ab4 into source Nov 1, 2024
4 checks passed
@benjie benjie deleted the where-from branch November 1, 2024 14:51
mandiwise pushed a commit to mandiwise/graphql.github.io that referenced this pull request Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants