client-web
client-web copied to clipboard
[Log][Sentry] Previous URL path to be sent with 404 errors
Description
Let's enhance our error data with router information, specifically the last URL path before the actual 404 URL.
Currently, we have the document.referrer
which is working for external clicks towards the platform.
However, we need to handle internal SPA navigation and save the last visited page (before the error).
Acceptance criteria
- [ ] The Sentry error should contain router information of the last visited URL/path before the current (404) one;
- [ ] …
Additional Context
Areas that will be affected
log.ts
and the log404NotFound
method sent on 404.