johngodley / redirection

Manage all your WordPress 301 redirects and monitor 404 errors
https://redirection.me
GNU General Public License v3.0
553 stars 139 forks source link

Import redirects into a specific group via json doesn't seem to work #3016

Closed awakash closed 2 years ago

awakash commented 3 years ago

Hello,

I'm working on importing a number of redirects into a group called 'Redirects' with id=25 which I pulled from the database.

fish__Users_abodiwala_www_sites_aclu-wp

Within the import file, group_id matches the id of 25

{
  "redirects": [
        {
            "url": "\/source",
            "action_type": "url",
            "action_data": {
                "url": "\/target"
            },
            "hits": "3914",
            "match_type": "url",
            "group_id": 25,
            "last_access": "July 4, 2021"
        }
  ]
}

I should see this redirect get created within the Redirects group but what I see happening is that a group called Group is created and the redirect is added to this.

Redirection_‹_ACLU_—_WordPress

I tried "group_id": "25" as well but saw the same issue.

Are you witnessing the same?

johngodley commented 2 years ago

Moving to #2263