From e4cdb3759f1ab608a1684d386f9a750cab490a4b Mon Sep 17 00:00:00 2001 From: mmtr <1233880+mmtr@users.noreply.github.com> Date: Fri, 17 Jan 2025 14:05:55 +0100 Subject: [PATCH] Remove duplicate views: Enable for all a12s (Calypso) --- client/controller/index.web.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/controller/index.web.js b/client/controller/index.web.js index 2bbbee8d5a519..841dc91b25a3c 100644 --- a/client/controller/index.web.js +++ b/client/controller/index.web.js @@ -399,7 +399,12 @@ export const redirectIfDuplicatedView = ( wpAdminPath ) => async ( context, next loadExperimentAssignment( aaTestName ); const duplicateViewsExperimentAssignment = await loadExperimentAssignment( experimentName ); - if ( isE2ETest() || duplicateViewsExperimentAssignment.variationName === 'treatment' ) { + + if ( + config( 'env_id' ) !== 'production' || + isE2ETest() || + duplicateViewsExperimentAssignment.variationName === 'treatment' + ) { const state = context.store.getState(); const siteId = getSelectedSiteId( state ); const wpAdminUrl = getSiteAdminUrl( state, siteId, wpAdminPath );