Skip to content

Commit 1621edc

Browse files
scttcperandrewshie-sentry
authored andcommitted
fix(projects): Link to new feedback (#87596)
1 parent 1775021 commit 1621edc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

static/app/views/projectDetail/projectQuickLinks.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function ProjectQuickLinks({organization, project, location}: Props) {
5050
const hasPerfLandingRemovalFlag = organization.features?.includes(
5151
'insights-performance-landing-removal'
5252
);
53+
const hasNewFeedback = organization.features.includes('user-feedback-ui');
5354
const domainView: DomainView | undefined = project
5455
? platformToDomainView([project], [parseInt(project.id, 10)])
5556
: 'backend';
@@ -58,7 +59,9 @@ function ProjectQuickLinks({organization, project, location}: Props) {
5859
{
5960
title: t('User Feedback'),
6061
to: {
61-
pathname: `/organizations/${organization.slug}/user-feedback/`,
62+
pathname: hasNewFeedback
63+
? `/organizations/${organization.slug}/feedback/`
64+
: `/organizations/${organization.slug}/user-feedback/`,
6265
query: {project: project?.id},
6366
},
6467
},

0 commit comments

Comments
 (0)