OAuth Redirect URI with custom parameters

SOLVE
Highlighted
New Member

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.

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
HubSpot Moderator

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.

Reply
0 Upvotes
3 Replies 3
HubSpot Moderator

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.

Reply
0 Upvotes
New Member

Thanks Connor,

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

:slight_smile:

New Contributor
 
Reply
0 Upvotes