# Redirects suddenly missing params between ReactApp & Functions API

**URL:** <https://answers.netlify.com/t/redirects-suddenly-missing-params-between-reactapp-functions-api/52828>\
**Category:** Support\
**Tags:** redirects\
**Created:** [March 3, 2022, 4:19pm UTC](https://answers.netlify.com/t/redirects-suddenly-missing-params-between-reactapp-functions-api/52828 "2022-03-03T16:19:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![javamu](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@javamu](https://answers.netlify.com/u/javamu)\
**Post date:** [March 3, 2022, 4:19pm UTC](https://answers.netlify.com/t/redirects-suddenly-missing-params-between-reactapp-functions-api/52828/1 "2022-03-03T16:19:20Z")

</div>

Hello,

All of the sudden, without any code changes, redirects stopped working between my react app en netlify function. (both are hosted on netlify).  
For both projects the same behaviour, it always redirects to the root url and is missing the extra params all of the sudden.

Example…  
`projecturl.com/api/attribute/1` now redirects to `projecturl.com/api/` while before it would redirect correctly.

Redirect file in root react app:

```auto
/api/* https://my-nelify-url.netlify.app/api/ 200
/* /index.html 200

```

It only messes up in combination. When i use the direct URL of the api the routing is working fine. The params only get lost when requested from the react-app redirect. Once again the problem started suddenly without code changes from my side on both projects at the same time.

Thanks in advance.  
Greetings, javamu

---

<div class="post-metadata">

**Author:** ![paulo](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/paulo/32/29222_2.png) [@paulo](https://answers.netlify.com/u/paulo)\
**Post date:** [March 3, 2022, 6:36pm UTC](https://answers.netlify.com/t/redirects-suddenly-missing-params-between-reactapp-functions-api/52828/2 "2022-03-03T18:36:46Z")

</div>

Hi @javamu!

I’m going to need a bit more data to properly help you out. If I understood correctly, you have the following setup:

1. react app (let’s call it `app_1`) hosted at Netlify that redirects to another app (let’s call it `app_2`).
2. that redirect is to a function path
3. in that scenario, you expect requests to `app_1.netlify.app/api/attribute/1` to be redirected to `app_2.netlify.app/api/attribute/1`.

Is this scenario correct? Do you know when the behaviour changed?

---

<div class="post-metadata">

**Author:** ![javamu](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@javamu](https://answers.netlify.com/u/javamu)\
**Post date:** [March 4, 2022, 7:16am UTC](https://answers.netlify.com/t/redirects-suddenly-missing-params-between-reactapp-functions-api/52828/3 "2022-03-04T07:16:37Z")

</div>

Hi Paulo,

Yes the situation you describe is correct. When i call `app_1` - `domain_app_1/api/attributes/1` it should redirect to `app_2` - `domain_app_2/api/attributes/1` but instead it only receives `domain_app2/api/` suddenly.  
I cant pinpoint the start date\_time exactly, but I noticed the problem first around 3 days ago after complaints.

---

<div class="post-metadata">

**Author:** ![coelmay](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/coelmay/32/24427_2.png) [@coelmay](https://answers.netlify.com/u/coelmay)\
**Post date:** [March 4, 2022, 7:35am UTC](https://answers.netlify.com/t/redirects-suddenly-missing-params-between-reactapp-functions-api/52828/4 "2022-03-04T07:35:43Z")

</div>

Hey @javamu

What if you change this

> [@javamu](#):
>
> `/api/* https://my-nelify-url.netlify.app/api/ 200`

to

```auto
/api/* https://my-nelify-url.netlify.app/api/:splat 200

```

---

<div class="post-metadata">

**Author:** ![javamu](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@javamu](https://answers.netlify.com/u/javamu)\
**Post date:** [March 4, 2022, 10:07am UTC](https://answers.netlify.com/t/redirects-suddenly-missing-params-between-reactapp-functions-api/52828/5 "2022-03-04T10:07:01Z")

</div>

> [@coelmay](#):
>
> `:splat`

Yes that did the trick. Thanks!  
Was this part of a breaking change in how netlify works with the `_redirect` file? It kinda worked without the `:splat` part before.

Thanks again!

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [March 9, 2022, 1:05pm UTC](https://answers.netlify.com/t/redirects-suddenly-missing-params-between-reactapp-functions-api/52828/6 "2022-03-09T13:05:36Z")

</div>

Hey @javamu,

The params should now persist even without `splat`. Something had changed and the fix for that has been implemented. Feel free to check out this:

> [@Proxy redirect looses query parameters towards netlify function](https://answers.netlify.com/t/proxy-redirect-looses-query-parameters-towards-netlify-function/52711/):
>
> Lately our proxy redirect settings are not able to read the incoming query parameters in the netlify function. The proxy redirect still works, but the query params are empty in the request. This has stopped working since one week ago. Working: [https://raket-test.netlify.app/.netlify/functions/next\_s\_shopId\_sellerId\_path?qool=123](https://raket-test.netlify.app/.netlify/functions/next_s_shopId_sellerId_path?qool=123) Not Working: [https://main.raket.nu/sv-se/shop/.netlify/functions/next\_s\_shopId\_sellerId\_path?qool=123](https://main.raket.nu/sv-se/shop/.netlify/functions/next_s_shopId_sellerId_path?qool=123) [[redirects]] from = "/sv-se/shop/\*" to = "https://raket-…
