From c923d3354868bd4003e2ee51e768b2753f8ab211 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Thu, 9 Jan 2025 15:17:17 +0200 Subject: [PATCH] refactor: redirect to onboarding on Starter Sites --- assets/apps/dashboard/src/Components/Content/Start.js | 4 ++-- inc/admin/dashboard/main.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/apps/dashboard/src/Components/Content/Start.js b/assets/apps/dashboard/src/Components/Content/Start.js index b19f5b66b1..bd24e6769a 100644 --- a/assets/apps/dashboard/src/Components/Content/Start.js +++ b/assets/apps/dashboard/src/Components/Content/Start.js @@ -9,7 +9,7 @@ import { withSelect } from '@wordpress/data'; const Start = (props) => { const { setTab, tier } = props; - const { pro, whiteLabel, customizerShortcuts, tpcAdminURL } = neveDash; + const { pro, whiteLabel, customizerShortcuts, tpcOnboardingURL } = neveDash; const starterSitesHidden = whiteLabel && whiteLabel.hideStarterSites; const renderCustomizerLinks = () => { @@ -65,7 +65,7 @@ const Start = (props) => { {__('Go to Starter Sites', 'neve')} ) : ( - )} diff --git a/inc/admin/dashboard/main.php b/inc/admin/dashboard/main.php index ccd65b8f8f..13b5465ffa 100755 --- a/inc/admin/dashboard/main.php +++ b/inc/admin/dashboard/main.php @@ -379,6 +379,7 @@ private function get_localization() { 'hidePluginsTab' => apply_filters( 'neve_hide_useful_plugins', ! array_key_exists( 'useful_plugins', $old_about_config ) ), 'tpcPath' => defined( 'TIOB_PATH' ) ? TIOB_PATH . 'template-patterns-collection.php' : 'template-patterns-collection/template-patterns-collection.php', 'tpcAdminURL' => admin_url( 'admin.php?page=tiob-starter-sites' ), + 'tpcOnboardingURL' => admin_url( 'admin.php?page=neve-onboarding' ), 'pluginsURL' => esc_url( admin_url( 'plugins.php' ) ), 'getPluginStateBaseURL' => esc_url( rest_url( '/nv/v1/dashboard/plugin-state/' ) ), 'canInstallPlugins' => current_user_can( 'install_plugins' ),