Use querystring params to consistently set the course id for login/registration flows