Skip to content

Commit 83a7fe2

Browse files
committed
Preserve query params
1 parent e40478f commit 83a7fe2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

static/app/components/group/issueSeerBadge.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Link from 'sentry/components/links/link';
1010
import {t} from 'sentry/locale';
1111
import {space} from 'sentry/styles/space';
1212
import type {Group} from 'sentry/types/group';
13+
import {useLocation} from 'sentry/utils/useLocation';
1314
import useOrganization from 'sentry/utils/useOrganization';
1415

1516
interface IssueSeerBadgeProps {
@@ -19,6 +20,7 @@ interface IssueSeerBadgeProps {
1920
function IssueSeerBadge({group}: IssueSeerBadgeProps) {
2021
const organization = useOrganization();
2122
const issuesPath = `/organizations/${organization.slug}/issues/`;
23+
const location = useLocation();
2224

2325
const autofixRunExists = getAutofixRunExists(group);
2426
const seerFixable = isIssueQuickFixable(group);
@@ -42,7 +44,12 @@ function IssueSeerBadge({group}: IssueSeerBadgeProps) {
4244

4345
return (
4446
<Tooltip title={seerTitle} skipWrapper>
45-
<SeerLink to={{pathname: `${issuesPath}${group.id}`, query: {seerDrawer: true}}}>
47+
<SeerLink
48+
to={{
49+
pathname: `${issuesPath}${group.id}`,
50+
query: {...location.query, seerDrawer: true},
51+
}}
52+
>
4653
<SeerIcon size="sm" />
4754
{seerFixable && <p>{t('Quick Fix')}</p>}
4855
</SeerLink>

0 commit comments

Comments
 (0)