Redirect based on query param in session creation