Url to pass back after SSO to redirect back to previous url/topic

I am using a custom SSO login through a node endpoint. It all works well and logs the user into discourse through ‘/auth/ssologin’ and then ‘/session/sso_login’ page. Can I pass a parameter directly to ‘/session/sso_login’ to go to the previous url/topic? If so what is the parameter?