Describe the bug
The third set of parameters to buildUrl, which include disablePathEncoding, are not being forwarded to the underlying buildUrl call and therefore not taking effect.
To Reproduce
Steps to reproduce the behaviour:
Call buildUrl with a URL containing spaces in the path
Pass in { disablePathEncoding: true } as the third option to buildUrl
It returns an encoded URL
Expected behaviour
Result should not be encoded
Screenshots
If applicable, add screenshots to help explain your problem.
Information:
react-imgix: 9.8.1
Additional context
It seems like the third set of options passed into buildUrlPublic is never forwarded onto the constructUrl call.
Before you submit:
Describe the bug The third set of parameters to
buildUrl
, which includedisablePathEncoding
, are not being forwarded to the underlyingbuildUrl
call and therefore not taking effect.To Reproduce Steps to reproduce the behaviour:
buildUrl
with a URL containing spaces in the path{ disablePathEncoding: true }
as the third option tobuildUrl
Expected behaviour Result should not be encoded
Screenshots If applicable, add screenshots to help explain your problem.
Information: react-imgix:
9.8.1
Additional context It seems like the third set of options passed into
buildUrlPublic
is never forwarded onto theconstructUrl
call.https://github.com/imgix/react-imgix/blob/main/src/constructUrl.js#L160