From ed624844f86f38f86405f49a1a00fac1998566a7 Mon Sep 17 00:00:00 2001 From: Patricia Hillebrandt Date: Tue, 5 Mar 2024 11:15:09 +0100 Subject: [PATCH] [CYS on Core] Ensure the user is directed to the in app marketplace whenever clicking on 'Browse all themes' (#45288) * Ensure the user is directed to the in app marketplace whenever clicking on 'Browse all themes' on core. * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: github-actions --- .../client/customize-store/index.tsx | 12 +++++++++--- ...arketplace-whenever-clicking-on-browse-all-themes | 4 ++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 plugins/woocommerce/changelog/45288-45284-cys-on-core-ensure-the-user-is-directed-to-the-in-app-marketplace-whenever-clicking-on-browse-all-themes diff --git a/plugins/woocommerce-admin/client/customize-store/index.tsx b/plugins/woocommerce-admin/client/customize-store/index.tsx index a1d1a4eb2a7b..33a3a2c1093e 100644 --- a/plugins/woocommerce-admin/client/customize-store/index.tsx +++ b/plugins/woocommerce-admin/client/customize-store/index.tsx @@ -83,9 +83,15 @@ const redirectToWooHome = () => { }; const redirectToThemes = ( _context: customizeStoreStateMachineContext ) => { - window.location.href = - _context?.intro?.themeData?._links?.browse_all?.href ?? - getAdminLink( 'themes.php' ); + if ( isWooExpress() ) { + window.location.href = + _context?.intro?.themeData?._links?.browse_all?.href ?? + getAdminLink( 'themes.php' ); + } else { + window.location.href = getAdminLink( + 'admin.php?page=wc-admin&tab=themes&path=%2Fextensions' + ); + } }; const markTaskComplete = async () => { diff --git a/plugins/woocommerce/changelog/45288-45284-cys-on-core-ensure-the-user-is-directed-to-the-in-app-marketplace-whenever-clicking-on-browse-all-themes b/plugins/woocommerce/changelog/45288-45284-cys-on-core-ensure-the-user-is-directed-to-the-in-app-marketplace-whenever-clicking-on-browse-all-themes new file mode 100644 index 000000000000..b140e047126c --- /dev/null +++ b/plugins/woocommerce/changelog/45288-45284-cys-on-core-ensure-the-user-is-directed-to-the-in-app-marketplace-whenever-clicking-on-browse-all-themes @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +Ensure the user is directed to the in-app marketplace whenever clicking on 'Browse all themes' within the Customize Your Store flow. \ No newline at end of file