# Oauth Callback URI query parameters gets clobbered

**URL:** <https://community.hubspot.com/t/oauth-callback-uri-query-parameters-gets-clobbered/11538>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [December 12, 2018, 3:27am UTC](https://community.hubspot.com/t/oauth-callback-uri-query-parameters-gets-clobbered/11538 "2018-12-12T03:27:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cameroncollecti](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cameroncollecti/32/76053_2.png) [@cameroncollecti](https://community.hubspot.com/u/cameroncollecti)\
**Post date:** [December 12, 2018, 3:27am UTC](https://community.hubspot.com/t/oauth-callback-uri-query-parameters-gets-clobbered/11538/1 "2018-12-12T03:27:57Z")

</div>

Howdy!

I am setting a redirect\_uri that has query parameters in the authorization URL as: redirect\_uri=[https://srv1.cameroncollective.com/oauth/callbacks?next=profile](https://srv1.cameroncollective.com/oauth/callbacks?next=profile)

The callback request getting back to my server looks like the query parameters are getting sliced and diced a little the field is there, but the value is dropped. Here’s the callback request info:  
GET ‘/oauth/callbacks?next&code=$$$redacted$$$’\>

Any thoughts?

Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [December 12, 2018, 9:44pm UTC](https://community.hubspot.com/t/oauth-callback-uri-query-parameters-gets-clobbered/11538/2 "2018-12-12T21:44:56Z")

</div>

Hey, [@cameroncollective](https://community.hubspot.com/u/cameroncollective)!

I ran a quick test with my own app and was able to pass `?custom_parameter=foo` to my redirect URI by encoding it as `%3Fcustom_parameter%3Dfoo`. If you try the same, what happens?
