Overriding Devise's after_sign_in_path_for
Devise by default redirects the user to the previous url (if present) after authenticating. This is a very useful default to have. But this behaviour is lost if we override the after_sign_in_path_for
method in our application.