NotGovUK icon indicating copy to clipboard operation
NotGovUK copied to clipboard

Impossible to navigate away from 404s?

Open daniel-ac-martin opened this issue 4 years ago • 2 comments

We've had a report that it is impossible to navigate away from a 404 page when in client-side rendering.

The only way to test this would be to deliberately create a broken link on a site.

daniel-ac-martin avatar Dec 14 '21 14:12 daniel-ac-martin

Surely you don't need to "create" a broken link, just try and hit a page that doesn't exist, no?

RobinKnipe avatar Dec 14 '21 14:12 RobinKnipe

No, because that would cause the browser to make a request against the server, which works fine.

Instead, we need react-router to intercept the click and try to route the 'request' in the client.

daniel-ac-martin avatar Dec 22 '21 18:12 daniel-ac-martin