client-web icon indicating copy to clipboard operation
client-web copied to clipboard

[Log][Sentry] Previous URL path to be sent with 404 errors

Open bobbykolev opened this issue 7 months ago • 0 comments

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.

bobbykolev avatar Jul 25 '24 06:07 bobbykolev