Description
When supplying the URL constructor with a second argument, 'base', paths aren't resolved correctly. see https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#base
The error is visible here: https://github.com/facebook/react-native/blob/900b625ee910cde61f9170e752020e974396aaae/packages/react-native/Libraries/Blob/URL.js#L80-L107
Steps to reproduce
console.log(new URL('/absolute/path', 'https://example.com/base-url/').href);
// prints: https://example.com/base-url/absolute/path
// expected: https://example.com/absolute/path
React Native Version
0.73
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
N/A
Screenshots and Videos
No response
Description
When supplying the URL constructor with a second argument, 'base', paths aren't resolved correctly. see https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#base
The error is visible here: https://github.com/facebook/react-native/blob/900b625ee910cde61f9170e752020e974396aaae/packages/react-native/Libraries/Blob/URL.js#L80-L107
Steps to reproduce
React Native Version
0.73
Affected Platforms
Runtime - iOS
Output of
npx @react-native-community/cli infoStacktrace or Logs
Reproducer
N/A
Screenshots and Videos
No response