Include final (redirected to) URL in response object. Fixes #55248. (#55251)

Summary:
This fixes a regression introduced by b18cd587dc  by including the final, redirected to URL in the response object.

## Changelog:

[ANDROID][FIXED] fetch() response URL is incorrect after redirect (https://github.com/facebook/react-native/issues/55248)

Pull Request resolved: https://github.com/facebook/react-native/pull/55251

Test Plan: Testing using the reproducer from issue https://github.com/facebook/react-native/issues/55248.

Reviewed By: cortinico

Differential Revision: D91046809

Pulled By: javache

fbshipit-source-id: 314419304f18325e6273ae9ed6a828d32abd68ac
This commit is contained in:
Mark Smith authored and meta-codesync[bot] committed 2026-01-20 12:50:01 -08:00
1 parent 898ac8aa59
commit fbe6a686e6
1 file changed
+1 -1
@@ -644,7 +644,7 @@ public class NetworkingModule(
reactApplicationContext,
requestId,
devToolsRequestId,
url,
response.request().url().toString(),
response,
)