Redirect user to new-topic after oauth login

I have an oauth setup done in my discourse instance. I know we can redirect users to certain pages after login if we had sso → mydiscourseurl.com/session/sso?return_path=/new-topic?title=topic.

I would like to know if this is possible after oauth login like → mydiscourseurl.com/auth/oauth2_basic?return_path=/new-topic?title=topic?

Sorry, found it here already here

What you have to do is, instead of return_path, user origin.
Eg: mydiscourseurl.com/auth/oauth2_basic?origin=/new-topic?...