Redirection after authorization is not working for new users



I have integrated “login with twitter”. On our site I see that users who have already approved app can login and get redirected to callback from twitter authorization page while new users can login but never get redirected to new callback url. They get to see “Redirecting you back to the application. This may take a few moments.” forever.

This is specific to browser Firefox on ubuntu 12.