Gatsby makes it easy to create your own custom 404 page docs here, but I would like to display the URL on the page inside a message - something like:
There was no page at '/example/nope'.
Is there any way to access the failed URL from within the 404 page?
Although I can't find any docs related to it, it appears that the 404 page receives a history
object as one of its props, however this object doesn't actually contain any historical URLs, only an api to navigate to a previous state and the current url (which is /404
).