Oauth Redirect URL

Hey All,

I was able to implement the Google Oauth on my home page. I have a different section in my app where I would like users to be able to pick or search their Google Drive for convenience when filling out some info and have that ability if they are not signed in with Google Already.

I synced the Google Drive API, however, when the user clicks the button I have for Drive, it goes to OAuth screen, successfully logs in, however it takes them back to the home page of my app.

Was wondering if anyone knows how to provide a redirect URL to Google specific to the Page and element they came from.

In my instance, this action happens on a page and inside a pop up that is separate from the homepage, that Google is redirecting to.

Any guidance is appreciated!

Thank you,

Jeff

Code it in the parameters and state on the return URL. So on page load do a check to read in the particular parameter you sent. Then take the user where they need to go.

Hi Nigel, thank you for the response, I am going to give this shot. Also, I see the way you’re always helping people in this community and I think it’s awesome. Thanks for the support.