From 473af26784d556befdcc65deebcdf54d0018966a Mon Sep 17 00:00:00 2001 From: Louis Laugesen Date: Tue, 10 Dec 2024 16:14:09 +1100 Subject: [PATCH] Point plugins link to wp-admin for Jetpack sites (#97092) --- client/sites/components/sites-dataviews/actions.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/sites/components/sites-dataviews/actions.tsx b/client/sites/components/sites-dataviews/actions.tsx index 8cf761897bde5..1daf86a8a5560 100644 --- a/client/sites/components/sites-dataviews/actions.tsx +++ b/client/sites/components/sites-dataviews/actions.tsx @@ -436,7 +436,8 @@ export function useActions( { const wpAdminUrl = getSiteAdminUrl( site ); const adminInterface = getAdminInterface( site ); const isWpAdminInterface = adminInterface === 'wp-admin'; - if ( isWpAdminInterface ) { + const isSelfHostedJetpack = isNotAtomicJetpack( site ); + if ( isWpAdminInterface || isSelfHostedJetpack ) { window.location.href = `${ wpAdminUrl }plugins.php`; } else { page( getPluginsUrl( site.slug ) );