• Resolved thomas.mery

    (@thomasmery)


    Hi there,

    first, thanks for this plugin! really make things easier ??

    As I was importing redirections from a csv file I noticed that I can re-import the same redirections as many times as I want, creating duplicates each time.

    The use case: exporting then editing a large list of redirects off-site and being able to re-import them without worrying about duplicates

    I had a look a the redirection_create_redirect filter and think I could use this to prevent this from happening but as it seemed like a feature that could be useful to others I though I’d ask a few questions here first:

    – does that seem like a reasonable expectation from the default plugin behaviour (preventing duplicates)
    – is it a planned feature?
    – what would be the best way to go if one was to implement this?

    any feedback on this really appreciated
    I can also move this to the github repo but as it’s more of a feature request right now I thought I’d post here first

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Godley

    (@johnny5)

    I don’t have a plan for this currently. It’s a little more complicated as you can have regular expressions that match multiple URLs, as well as redirects that match referrer, user agent, etc. Rather than attempt to catch all these cases and likely cause some data loss the plugin just leaves it up to the user.

    Thread Starter thomas.mery

    (@thomasmery)

    Thanks John,

    I understand, I’ll make sure I communicate this to the admin of the project.

    Maybe you would consider a note in the docs in the import/export section?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Prevent importing duplicate redirections?’ is closed to new replies.