I tried to create a custom patch to fix the Magento core bug, but time to install the patch facing the below issue.
patch: **** malformed patch at line 7: - $value[0]['name'] = $value[0]['url'];
Index: vendor/magento/module-catalog/Model/Category/Attribute/Backend/Image.php
diff --git a/vendor/magento/module-catalog/Model/Category/Attribute/Backend/Image.php b/vendor/magento/module-catalog/Model/Category/Attribute/Backend/Image.php
--- a/vendor/magento/module-catalog/Model/Category/Attribute/Backend/Image.php
+++ b/vendor/magento/module-catalog/Model/Category/Attribute/Backend/Image.php
@@ -126,1 +126,8 @@
$value[0]['url'] = parse_url($value[0]['url'], PHP_URL_PATH);
- $value[0]['name'] = $value[0]['url'];
+ $value[0]['name'] = $value[0]['name'];
}
Thank you in advance.