feat(404): add threshold parameter, number of characters a link can be editted to be correct

This commit is contained in:
Khinshan Khan
2020-01-26 12:29:06 -05:00
committed by Jean-Philippe Sirois
parent 713f9c1629
commit 56df4abeb6
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export default ({ data }: ComponentQuery<{ allFile: FileConnection }>) => (
<h1>RESOURCE NOT FOUND</h1>
<p>You just hit a route that doesn&#39;t exist... the sadness.</p>
<Location>
{({ location }) => getPossibleCorrections("resources", location, data)}
{({ location }) => getPossibleCorrections("resources", location, data, 8)}
</Location>
</Fragment>
)