From 59712d313dea6e331da1fbb7fb926b982b962113 Mon Sep 17 00:00:00 2001 From: Paulo Trentin Date: Fri, 10 Jan 2025 14:23:38 -0300 Subject: [PATCH] Using page calypso router to navigate to /home --- client/my-sites/site-settings/wrap-settings-form.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/my-sites/site-settings/wrap-settings-form.jsx b/client/my-sites/site-settings/wrap-settings-form.jsx index 6b4c15f939e2c..782798101443d 100644 --- a/client/my-sites/site-settings/wrap-settings-form.jsx +++ b/client/my-sites/site-settings/wrap-settings-form.jsx @@ -1,3 +1,4 @@ +import page from '@automattic/calypso-router'; import { fetchLaunchpad } from '@automattic/data-stores'; import debugFactory from 'debug'; import { localize } from 'i18n-calypso'; @@ -79,7 +80,7 @@ const wrapSettingsForm = ( getFormSettings ) => ( SettingsForm ) => { if ( ! this.state.isSiteTitleTaskCompleted && this.state.blogNameChanged ) { noticeSettings.button = this.props.translate( 'Next steps' ); noticeSettings.onClick = () => { - window.location.assign( `/home/${ this.props.siteSlug }` ); + page( `/home/${ this.props.siteSlug }` ); }; }