Repository navigation
fix: preserve punctuation in broken link report #8351
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -117,8 +117,8 @@ const L404 = () => { | |
| const issueBody = encodeURIComponent( | ||
| "### Description\n\n" + | ||
| "Broken link encountered on the Layer5 website.\n\n" + | ||
| `- Broken URL: ${brokenUrl}\n` + | ||
| `- Referrer: ${referrer}\n\n` + | ||
| `- Broken URL: \`${brokenUrl}\`\n` + | ||
| `- Referrer: \`${referrer}\`\n\n` + | ||
|
Comment on lines
+120
to
+121
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "### Expected Behavior\n\n" + | ||
| "The requested page should resolve successfully instead of returning a 404 page.\n\n" + | ||
| "### Screenshots\n\n" + | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: layer5io/layer5
Length of output: 1021
Script executed:
Repository: layer5io/layer5
Length of output: 14693
Script executed:
Repository: layer5io/layer5
Length of output: 497
Web query:
GitHub documentation prefill new issue URL body query parameter markdown bodyResult:
Let reporters include the full broken URL safely.
When the broken URL has a query string,
sanitizeUrlremoves it before the issue body is built. The report can therefore omit information needed to reproduce the failure. Provide a privacy-aware way for reporters to include the full URL, such as an explicit opt-in.