diff --git a/composer.json b/composer.json index d5f80bd..5249cac 100644 --- a/composer.json +++ b/composer.json @@ -115,6 +115,9 @@ ] }, "patches": { + "drupal/feeds": { + "Add missing redirect source": "./tools/patches/redirect/redirect-feeds-target-3046873-14.patch" + }, "drupal/markdown": { "SubformState incorrect interface error": "./tools/patches/drupal/markdown/3409277-29.diff" } diff --git a/composer.lock b/composer.lock index e72a353..00eacd0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "458c41f03ff6c768a09edf9a072f26a8", + "content-hash": "4175cf67867cf307323afabccb5a6283", "packages": [ { "name": "asm89/stack-cors", diff --git a/tools/patches/redirect/redirect-feeds-target-3046873-14.patch b/tools/patches/redirect/redirect-feeds-target-3046873-14.patch new file mode 100644 index 0000000..dae372b --- /dev/null +++ b/tools/patches/redirect/redirect-feeds-target-3046873-14.patch @@ -0,0 +1,45 @@ +diff --git a/src/Feeds/Target/RedirectSource.php b/src/Feeds/Target/RedirectSource.php +new file mode 100644 +index 0000000..ff59344 +--- /dev/null ++++ b/src/Feeds/Target/RedirectSource.php +@@ -0,0 +1,38 @@ ++addProperty('path') ++ ->addProperty('query') ++ ->markPropertyUnique('path'); ++ } ++ ++ /** ++ * {@inheritdoc} ++ */ ++ protected function prepareValue($delta, array &$values) { ++ $values['path'] = trim($values['path']); ++ } ++ ++} +\ No newline at end of file