Skip to content

Commit 78755ed

Browse files
authored
Merge pull request #1654 from topcoder-platform/pm-1355
fix(PM-1355): Retain query param in invite link
2 parents 9c67f2b + 1aa70f4 commit 78755ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ workflows:
152152
context: org-global
153153
filters: &filters-dev
154154
branches:
155-
only: ["develop", "PM-803_wm-regression-fixes", "PM-902_show-all-projects-on-challenge-page", "pm-1169"]
155+
only: ["develop", "PM-803_wm-regression-fixes", "PM-902_show-all-projects-on-challenge-page"]
156156

157157
# Production builds are exectuted only on tagged commits to the
158158
# master branch.

src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Routes extends React.Component {
111111
} else {
112112
console.error('An unexpected error occurred while getting auth token')
113113
}
114-
const redirectBackToUrl = encodeURIComponent(window.location.origin + this.props.location.pathname)
114+
const redirectBackToUrl = encodeURIComponent(window.location.origin + this.props.location.pathname + this.props.location.search)
115115
window.location = `${ACCOUNTS_APP_LOGIN_URL}?retUrl=${redirectBackToUrl}`
116116
})
117117
}

0 commit comments

Comments
 (0)