Skip to content

Commit a8a30ea

Browse files
authored
feat(issues): Link from tag drawer to issue details (#92067)
1 parent da0a1a3 commit a8a30ea

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

static/app/views/issueDetails/groupTags/tagDetailsDrawerContent.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,25 @@ function TagDetailsRow({
157157
tagValue: TagValue;
158158
}) {
159159
const organization = useOrganization();
160+
const location = useLocation();
160161

161162
const key = tagValue.key ?? tag.key;
162163
const query =
163164
key === 'environment'
164165
? {
165166
environment: tagValue.value,
167+
query: undefined,
166168
}
167-
: {query: tagValue.query || `${key}:"${tagValue.value}"`};
169+
: {
170+
query: tagValue.query || `${key}:"${tagValue.value}"`,
171+
};
172+
168173
const allEventsLocation = {
169-
pathname: `/organizations/${organization.slug}/issues/${group.id}/events/`,
170-
query,
174+
pathname: `/organizations/${organization.slug}/issues/${group.id}/events/recommended/`,
175+
query: {
176+
...location.query,
177+
...query,
178+
},
171179
};
172180
const percentage = Math.round(percent(tagValue.count ?? 0, tag.totalValues ?? 0));
173181
const displayPercentage = percentage < 1 ? '<1%' : `${percentage.toFixed(0)}%`;

0 commit comments

Comments
 (0)