# Is it possible to tack on parameters to the redirect URI?

**URL:** <https://devforum.okta.com/t/is-it-possible-to-tack-on-parameters-to-the-redirect-uri/13518>\
**Category:** Questions\
**Created:** [March 26, 2021, 10:09pm UTC](https://devforum.okta.com/t/is-it-possible-to-tack-on-parameters-to-the-redirect-uri/13518 "2021-03-26T22:09:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kapple](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@kapple](https://devforum.okta.com/u/kapple)\
**Post date:** [March 26, 2021, 10:09pm UTC](https://devforum.okta.com/t/is-it-possible-to-tack-on-parameters-to-the-redirect-uri/13518/1 "2021-03-26T22:09:16Z")

</div>

We have an application that has URL parameters that are required for server side rendering. Normally post authentication on the redirect URI, we have a functionality where the redirect component is responsible for redirection back to the URL via the history API or something similar. However, this will be useless for the application’s SSR parameters.

This is what we want for example during redirection back to the redirect URI. Below, we want the **ssrParam1** and **ssrParam2** to be included in the URL parameters.

` http://www.example.com/path?state=EXAMPLE_STATE&code=EXAMPLE_CODE&ssrParam1=EXAMPLE_PARAM&ssrParam2=EX`

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [March 29, 2021, 6:54pm UTC](https://devforum.okta.com/t/is-it-possible-to-tack-on-parameters-to-the-redirect-uri/13518/2 "2021-03-29T18:54:06Z")

</div>

The redirect\_uri should be static and Okta will do an EXACT string comparison of the redirect\_uri provided in your /authorize request with the Login Redirect URIs you’ve allowed for the application in Okta, so dynamic urls/query params are not supported.

I found [this SO thread](https://stackoverflow.com/a/55577647/14450392) that goes into this a bit further, and there’s also another [post](https://devforum.okta.com/t/problem-with-customizing-redirect-uri/4077/2) on the forum here that discusses it as well.

---

<div class="post-metadata">

**Author:** ![kapple](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@kapple](https://devforum.okta.com/u/kapple)\
**Post date:** [March 30, 2021, 2:50am UTC](https://devforum.okta.com/t/is-it-possible-to-tack-on-parameters-to-the-redirect-uri/13518/3 "2021-03-30T02:50:40Z")

</div>

Thanks for the help, this makes sense.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [March 31, 2021, 2:51am UTC](https://devforum.okta.com/t/is-it-possible-to-tack-on-parameters-to-the-redirect-uri/13518/4 "2021-03-31T02:51:23Z")

</div>

Closed on March 31, 2021, 2:51am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
