This repository was archived by the owner on Apr 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
src/domains/dashboard/components/migration-manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,10 +56,13 @@ import { utmParametersToString } from "domains/global/selectors"
5656// } //CLOUD
5757
5858const MigrationManager = ( ) => {
59- const cloudUrl = useSelector ( state => selectSignInUrl ( "go-to-cloud-migration" ) ( state as any ) )
6059 const cloudEnabled = useSelector ( selectIsCloudEnabled )
6160 const registry = useSelector ( selectRegistry )
6261
62+ const cloudUrl = useSelector ( state =>
63+ selectSignInUrl ( { content : "agent-auto-redirect" , term : registry . machineGuid } ) ( state as any )
64+ )
65+
6366 const linkToCoud = useMemo ( ( ) => {
6467 const { href } = window . location
6568 const redirectURI = encodeURIComponent ( href )
@@ -100,10 +103,7 @@ const MigrationManager = () => {
100103
101104 useEffect ( ( ) => {
102105 if ( goToCloud ( { userSavedPreference, ...userNodeAccess } ) ) {
103- window . location . href = `${ linkToCoud } ${ utmParametersToString ( {
104- content : "agent-auto-redirect" ,
105- term : registry . machineGuid ,
106- } ) } `
106+ window . location . href = linkToCoud
107107 }
108108 } , [ linkToCoud , userNodeAccess , userSavedPreference ] )
109109
You can’t perform that action at this time.
0 commit comments