File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,12 @@ function ErrorPage({
103103 ) : null }
104104 < HeroSection { ...heroProps } />
105105
106+ { possibleMatchesQuery && ! possibleMatches ?. length ? (
107+ // Ensure in-page links to `#possible-matches` have a target even
108+ // before semantic results load.
109+ < div id = "possible-matches" />
110+ ) : null }
111+
106112 { possibleMatches ?. length ? (
107113 < PossibleMatchesSection
108114 matches = { possibleMatches }
@@ -270,7 +276,7 @@ function FourOhFour({
270276 title : "404 - Oh no, you found a page that's missing stuff." ,
271277 subtitle : `"${ pathname } " is not a page on kentcdodds.com. So sorry.` ,
272278 image : < MissingSomething className = "rounded-lg" aspectRatio = "3:4" /> ,
273- action : < ArrowLink href = "/" > Go home </ ArrowLink > ,
279+ action : < ArrowLink to = "#possible-matches" > Possible matches </ ArrowLink > ,
274280 } }
275281 />
276282 )
You can’t perform that action at this time.
0 commit comments