From b5dc951b72bca923b4b45c5c87d7a596e967824c Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Mon, 5 May 2025 16:13:00 -0700 Subject: [PATCH] fix(issues): Remove hash on issues dropdown When navigating between events, replays, etc and back to events, we want to remove the hash from the url so it doesn't auto-scroll you to that section. --- static/app/views/issueDetails/streamline/eventNavigation.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/app/views/issueDetails/streamline/eventNavigation.tsx b/static/app/views/issueDetails/streamline/eventNavigation.tsx index 99fb70c2f2df92..816dcfe49a9689 100644 --- a/static/app/views/issueDetails/streamline/eventNavigation.tsx +++ b/static/app/views/issueDetails/streamline/eventNavigation.tsx @@ -117,6 +117,7 @@ export function IssueEventNavigation({event, group}: IssueEventNavigationProps) to: { ...location, pathname: `${baseUrl}${TabPaths[Tab.DETAILS]}`, + hash: undefined, }, }, { @@ -135,6 +136,7 @@ export function IssueEventNavigation({event, group}: IssueEventNavigationProps) to: { ...location, pathname: `${baseUrl}${TabPaths[Tab.REPLAYS]}`, + hash: undefined, }, hidden: !issueTypeConfig.pages.replays.enabled, }, @@ -152,6 +154,7 @@ export function IssueEventNavigation({event, group}: IssueEventNavigationProps) to: { ...location, pathname: `${baseUrl}${TabPaths[Tab.ATTACHMENTS]}`, + hash: undefined, }, hidden: !issueTypeConfig.pages.attachments.enabled, }, @@ -166,6 +169,7 @@ export function IssueEventNavigation({event, group}: IssueEventNavigationProps) to: { ...location, pathname: `${baseUrl}${TabPaths[Tab.USER_FEEDBACK]}`, + hash: undefined, }, hidden: !issueTypeConfig.pages.userFeedback.enabled, },