Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: back button issue in trace details page (#8347)

Sahil Khan525a0d7a1ad6
diff --git a/frontend/src/container/TraceMetadata/TraceMetadata.tsx b/frontend/src/container/TraceMetadata/TraceMetadata.tsx
index 78e3ee20c9..929cbd0de6 100644
--- a/frontend/src/container/TraceMetadata/TraceMetadata.tsx
+++ b/frontend/src/container/TraceMetadata/TraceMetadata.tsx
@@ -43,13 +43,7 @@ function TraceMetadata(props: ITraceMetadataProps): JSX.Element {
<ArrowLeft
size={14}
onClick={(): void => {
- // Check if page was opened in new tab (no referrer from same origin)
- // or if there's no meaningful history to go back to
- const hasValidReferrer =
- document.referrer &&
- new URL(document.referrer).origin === window.location.origin;
-
- if (hasValidReferrer && window.history.length > 1) {
+ if (window.history.length > 1) {
history.goBack();
} else {
history.push(ROUTES.TRACES_EXPLORER);