Redirect the page after login with using modal form
Add this in your custom module. Hope it works.

/**
 * Implements hook_user_login().
 */
function my_module_user_login(&amp;$edit, $account) {
ctools_add_js('ajax-responder');
$commands = array();
$commands[] = ctools_ajax_command_redirect('YOUR-REDIRECT-PAGE');
print ajax_render($commands);
exit;
}