From e8538a3f3ffd95f7cd5141287cec5dcaa141dffb Mon Sep 17 00:00:00 2001 From: Rakib Ansary Date: Tue, 8 Feb 2022 15:28:25 +0600 Subject: [PATCH] fix: add regSource when signup up through challenge Register btn --- .circleci/config.yml | 2 +- src/shared/containers/challenge-detail/index.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c76c230d2e..9bb0a50e15 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -343,7 +343,7 @@ workflows: branches: only: - develop - - fix/settings-save-fail + - fix/regsource # This is alternate dev env for parallel testing - "build-test": context : org-global diff --git a/src/shared/containers/challenge-detail/index.jsx b/src/shared/containers/challenge-detail/index.jsx index 97172e7c77..7fc42608f6 100644 --- a/src/shared/containers/challenge-detail/index.jsx +++ b/src/shared/containers/challenge-detail/index.jsx @@ -297,7 +297,7 @@ class ChallengeDetailPageContainer extends React.Component { } = this.props; if (!auth.tokenV3) { const utmSource = communityId || 'community-app-main'; - window.location.href = `${config.URL.AUTH}/member?retUrl=${encodeURIComponent(window.location.href)}&utm_source=${utmSource}`; + window.location.href = `${config.URL.AUTH}/member?retUrl=${encodeURIComponent(window.location.href)}&utm_source=${utmSource}®Source=challenges`; } else if (_.every(terms, 'agreed')) { registerForChallenge(auth, challengeId); } else {