drop hash while sending log to sentry

This commit is contained in:
Abhinav 2022-02-04 17:31:40 +05:30
parent 52be964256
commit bf9a2af292

View file

@ -22,6 +22,13 @@ Sentry.init({
attachStacktrace: true,
autoSessionTracking: false,
tunnel: getSentryTunnelURL(),
beforeSend(event) {
event.request = event.request || {};
const currentURL = new URL(document.location.href);
currentURL.hash = '';
event.request.url = currentURL;
return event;
},
// ...
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so