Feature #7462
closedAlways redirect Open Humans user back to OH
100%
Description
Always redirect the user to 'openhumans.org/study/pgp/return/'.
If there's an origin parameter that's been received, include it as a parameter in the redirect.
This probably involves a small change to the logic here:
https://dev.arvados.org/projects/tapestry/repository/revisions/6961-simplify-open-humans-account-link-flow/entry/app/controllers/open_humans_controller.rb#L101
Rationale: User feedback suggests that users expect to "finish" processes like this on Open Humans, even when they start elsewhere. To accomplish this, we want users to always return to the Open Humans site after the PGP Tapestry backend has received their token and completed the data connection.
For users that are believed to have started the process on the PGP site (i.e. no "origin=open-humans" parameter), Open Humans offers a choice: "Return to Harvard PGP" or "Continue to Open Humans". Users with origin=open-humans are currently sent to their research data page (as Tapestry currently does). This behavior is implemented and currently present in the Open Humans staging site.
See also: https://github.com/PersonalGenomesOrg/open-humans/issues/224