Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CYS on Core] Ensure the user is directed to the in app marketplace whenever clicking on 'Browse all themes' #45288

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.