Arkade\S3\Model\Store\Store\Plugin::afterGetBaseUrl PHP Method

afterGetBaseUrl() public method

This plugin fixes a bug where Magento incorrectly appends two forward slashes to the media rewrite script. We remove one of those extra forward slashes.
public afterGetBaseUrl ( Magento\Store\Model\Store $subject, string $result ) : string
$subject Magento\Store\Model\Store
$result string
return string
    public function afterGetBaseUrl(\Magento\Store\Model\Store $subject, $result)
    {
        return str_replace('//get.php/', '/get.php/', $result);
    }