Skip to content

Commit f2eab2f

Browse files
authored
feat: one click 404 report (#9937)
* feat: one click 404 report
1 parent 061c034 commit f2eab2f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/not-found.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {Search} from 'sentry-docs/components/search';
88

99
export default function NotFound() {
1010
const pathname = usePathname() ?? '/';
11+
const brokenUrl = `https://docs.sentry.io${pathname}`;
12+
const reportUrl = `https://github.com/getsentry/sentry-docs/issues/new?template=issue-platform-404.yml&title=🔗 404 Error&url=${brokenUrl}`;
1113
return (
1214
<div className="tw-app">
1315
<Header pathname="/" searchPlatforms={[]} noSearch />
@@ -21,11 +23,7 @@ export default function NotFound() {
2123
</div>
2224
<div className="pt-8 flex gap-4">
2325
<Button variant="solid" size="3" asChild>
24-
<a
25-
href="https://github.com/getsentry/sentry-docs/issues/new/choose"
26-
target="_blank"
27-
rel="noreferrer"
28-
>
26+
<a href={reportUrl} target="_blank" rel="noreferrer">
2927
Report 404 on Github
3028
</a>
3129
</Button>

0 commit comments

Comments
 (0)