APIs & Integrations

Pavitra_Mehta
Member

OAuth Redirect URI with custom parameters

SOLVE

Hello,

My redirect URL is http://xyz.com?page=abc, but after successful authenticating the account, I am getting the url as http://xyz.com?page&code=xxx-xxx and that is 404 for me, because page parameter is removed.

Any other alternative? Using headers() PHP to redirect to your app oauth url.

0 Upvotes
1 Accepted solution
cbarley
Solution
HubSpot Alumni
HubSpot Alumni

OAuth Redirect URI with custom parameters

SOLVE

Hi @Pavitra_Mehta, at this time, redirect URI's cannot contain query parameters. I definitely understand the use case in terms of using that with dynamic pages, but we can't have any query parameters in the redirect URI. I'd recommend setting up a separate page that you redirect to for you application.

View solution in original post

0 Upvotes
3 Replies 3
sa95
Member

OAuth Redirect URI with custom parameters

SOLVE
 
0 Upvotes
Pavitra_Mehta
Member

OAuth Redirect URI with custom parameters

SOLVE

Thanks Connor,

To get the results I have to use it this way then.

:slight_smile:

cbarley
Solution
HubSpot Alumni
HubSpot Alumni

OAuth Redirect URI with custom parameters

SOLVE

Hi @Pavitra_Mehta, at this time, redirect URI's cannot contain query parameters. I definitely understand the use case in terms of using that with dynamic pages, but we can't have any query parameters in the redirect URI. I'd recommend setting up a separate page that you redirect to for you application.

0 Upvotes