Needs work
Project:
Redirect
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2019 at 14:24 UTC
Updated:
19 Apr 2026 at 11:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
artematem commentedComment #3
jesss commentedThis seems like an essential piece of the puzzle -- how can you import a redirect without the source?
That said, this patch is in the wrong namespace, so it throws errors. This patch is for the Feeds module, so the namespace should be
namespace Drupal\feeds\Feeds\Target;not namespaceDrupal\redirect\Feeds\Target;. Or, it should be reworked to patch the Redirect module instead.Comment #4
damondt commentedThe namespace
namespace Drupal\redirect\Feeds\Target;is correct, this works without issue.Comment #5
kleiton_rodrigues commentedThe patch applies cleanly and works as expected.
RTBC+1
Comment #6
kleiton_rodrigues commentedComment #7
kleiton_rodrigues commentedComment #8
scotwith1t+1 thanks!
Comment #9
scotwith1tHow do we avoid the duplication warnings when re-running the same feed if the (for example csv file) source has been updated?
Since the "from" in a redirect is only allowed to go to one "to" destination, it would make sense to be able to select the redirect_source as Unique in the fields UI.

Comment #10
kristen polAssigning to myself as I'm triaging all RTBC issues.
Comment #11
jpshayes commentedDid this patch make it into the latest dev branch? I have a need for this and I am happy to test or help if it is needed.
Comment #12
phergo commentedI have added the option to set the "redirect_source/path" property as unique in order to avoid duplication warnings.
Comment #13
phergo commentedComment #14
phergo commentedPatch #14 adds the ability to mark the "redirect_source/path" property as unique in order to avoid duplication warnings.
Comment #17
hswong3i commentedConvert to MR, rebase with 8.x-1.x-dev
Comment #18
megachrizClosed #3532139: Feeds: Add support for redirect_source field types as a duplicate.
Comment #19
kristen polThe AI initiative has consumed me so unassigning
Comment #21
berdirThis will need to handle phpstan, probably by adding feeds as a dev dependency or ignoring those errors.