Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit b3bc727

Browse files
committed
fix bug with utm params
1 parent 02fb4fc commit b3bc727

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/domains/dashboard/components/migration-manager/migration-manager.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,13 @@ import { utmParametersToString } from "domains/global/selectors"
5656
// } //CLOUD
5757

5858
const 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

0 commit comments

Comments
 (0)