From b0d9b00045eef1712f36f5c654168bb5b0dc8ae2 Mon Sep 17 00:00:00 2001 From: Anthony Grullon Date: Mon, 30 Sep 2024 15:49:52 -0400 Subject: [PATCH] Refactor hosting overview controller to handle redirect query parameter --- client/hosting/overview/controller.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/hosting/overview/controller.tsx b/client/hosting/overview/controller.tsx index 50757af793051..914a08c52462e 100644 --- a/client/hosting/overview/controller.tsx +++ b/client/hosting/overview/controller.tsx @@ -1,8 +1,8 @@ import { Context as PageJSContext } from '@automattic/calypso-router'; +import { getQueryArg } from '@wordpress/url'; import HostingOverview from 'calypso/hosting/overview/components/hosting-overview'; import HostingActivate from 'calypso/hosting/server-settings/hosting-activate'; import Hosting from 'calypso/hosting/server-settings/main'; -import { getQueryArg } from '@wordpress/url'; export function hostingOverview( context: PageJSContext, next: () => void ) { const redirectToQueryParam = String( getQueryArg( context.path, 'redirect_to' ) );