How to fix the Magento 2.2.x image URLs bug in Windows?

Replace the line:

with the following one:

return implode('/', [$this->context->getBaseUrl(), $this->getModule(), $this->getMiscPath()]) . $this->getFilePath();

See also: