Skip to content

Commit 4708f97

Browse files
scttcperclaude
andauthored
fix(issues): Drop pinned date range from short ID redirect (#128297)
Searching a short ID on the issue list (e.g. a link like `/issues/?query=JAVASCRIPT-XXXX`) [example](https://sentry.io/organizations/sentry/issues/?project=11276&query=JAVASCRIPT-3FW1) redirects to the issue, but it carried over the pinned date range from page filters. With something short like 6h pinned, issue details would get stuck on it and could show no events at all. Keeps project and environment but drops the date params so issue details uses its default of since first seen, same as the regular issue row links. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ec702dc commit 4708f97

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎static/app/views/issueList/overview.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import type {CursorHandler} from '@sentry/scraps/pagination';
1515

1616
import {addMessage} from 'sentry/actionCreators/indicator';
1717
import * as Layout from 'sentry/components/layouts/thirds';
18+
import {DATE_TIME_KEYS} from 'sentry/components/pageFilters/constants';
1819
import {extractSelectionParameters} from 'sentry/components/pageFilters/parse';
1920
import {usePageFilters} from 'sentry/components/pageFilters/usePageFilters';
2021
import {QueryCount} from 'sentry/components/queryCount';
@@ -450,7 +451,9 @@ function IssueListOverviewInner({
450451
pathname: redirect,
451452
query: {
452453
referrer: 'issue-list',
453-
...extractSelectionParameters(location.query),
454+
// The issue list's date range may come from pinned filters, let
455+
// issue details fall back to its own default instead
456+
...omit(extractSelectionParameters(location.query), DATE_TIME_KEYS),
454457
},
455458
}),
456459
{replace: true}

0 commit comments

Comments
 (0)