Skip to content

Add the glm_params when redirecting to new_trial_registration_path

What does this MR do and why?

When the user requests /-/trials/new without login, it will be redirect to /-/trial_registrations/new, at which point the glm_params are lost. If the user login or registers and creates a trial, it will not be able to carry the glm_params. Therefore, I think we should add the glm_params when redirecting to /-/trial_registrations/new.

Screenshots or screen recordings

Before After
iShot_2023-03-12_21.38.21 iShot_2023-03-12_21.34.54

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

/cc @daveliu @tianlu1677

Edited by fx Li

Merge request reports