In my react app I'm using setting the style of a div to
{ backgroundImage: "url(file://f:/images/0/22.jpg)" }
but it throws a ERR_FILE_NOT_FOUND error with a very strange url such as
file:///F:/images%EF%BF%BD%22.jpg.
Ordinary relative paths to images without file:// work fine and if I copy the path, printed from console, into the inspector it works fine too.
I can't figure out when this transformation happens but prints of the url I'm using in my react component are fine.