Problem/Motivation

After applying the patch on https://www.drupal.org/node/2932615 or using the dev version of the redirect module,
when the import file has a trailing slash on the from the redirectExists the hash returns
that it doesn't exist because the '/' is not on the database.

Steps to reproduce

Use the dev version of the redirect module or the patch merged on https://www.drupal.org/node/2932615
The file to import should have a trailing redirect on some of the from items
It will error out because a "Duplicate entry "

Proposed resolution

Similar to what was done on https://www.drupal.org/node/2932615 add a clean up for the trailing slash

Remaining tasks

User interface changes

None

API changes

None

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

MauHG created an issue. See original summary.

paulocs made their first commit to this issue’s fork.

  • paulocs committed ded89c9 on 8.x-1.x authored by MauHG
    Issue #3249757 by MauHG: "Duplicate entry"  when trailing slash on the...
paulocs’s picture

Status: Active » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.