File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
app/code/Magento/MediaContentCatalog/etc
dev/tests/integration/testsuite/Magento/MediaContent/Model Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_MediaContentApi:etc/media_content.xsd" >
9
9
<search >
10
10
<patterns >
11
- <pattern name =" catalog_image" >/^\/pub\/?media\/(.*)/</pattern >
11
+ <pattern name =" catalog_image" >/^\/?media\/(.*)/</pattern >
12
+ <pattern name =" catalog_image_with_pub" >/^\/pub\/?media\/(.*)/</pattern >
12
13
</patterns >
13
14
</search >
14
15
</config >
Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ public function contentProvider()
83
83
2020
84
84
]
85
85
],
86
+ 'Relevant path content with pub ' => [
87
+ '/pub/media/testDirectory/path.jpg ' ,
88
+ [
89
+ 2020
90
+ ]
91
+ ],
86
92
'Relevant path content ' => [
87
93
'/media/testDirectory/path.jpg ' ,
88
94
[
You can’t perform that action at this time.
0 commit comments