Skip to content

Commit

Permalink
[CYS on Core] Ensure the user is directed to the in app marketplace w…
Browse files Browse the repository at this point in the history
…henever 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 <github-actions@github.com>
  • Loading branch information
nefeline and github-actions committed Mar 5, 2024
1 parent 298cddf commit ed62484
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 9 additions & 3 deletions plugins/woocommerce-admin/client/customize-store/index.tsx
Expand Up @@ -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 () => {
Expand Down
@@ -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.

0 comments on commit ed62484

Please sign in to comment.