After account creation (not log in) via the discourse-oauth2-basic plugin, it doesn’t redirect back to the page where you were.
@nbianca can you have a look at this? the whole pipeline of shuffling the redirect around is a bit tricky, but there is a pattern for it when you sign in on mobile for example (where we do not pop up a window).
It is fixed as per above commit. Now I’m adding few more tests.