We gave a Google Apps for Education account setup as per http://docs.moodle.org/24/en/Google_Apps_Integration#Set_Up_Google.27s_Authentication
When users attempt to access google services, they are redirected to the moodle login page (as expected). However, on successful login, the user is redirected to their my courses page, instead of back to the google service they were attempting to sign in to. This is especially frustrating when users are attempting to sign in to apps on mobile devices (such as drive). Effectively the only workaround for mobile devices is to attempt to sign in once, then "close" the sign in process once you sign in properly to moodle, then attempt to login again (which works the second time because the app already has the authentication token).
Is there any way a person can modify login.php, or create another login page specifically for Google SSO that redirects back to the google service upon successful login?