When migrating content from one Drupal site to another (D7 to D7) using the Migrate module, duplicate aliases are created when using the Neutral Paths module.

When not using Neutral Paths there would typically be a row in the url_alias table for each enabled language.

+------+-----------+----------------------+----------+
| pid  | source    | alias                | language |
+------+-----------+----------------------+----------+
| 1271 | node/3094 | ships/sea-explorer   | en       |
| 1272 | node/3094 | ships/sea-explorer   | fr       |
| 1273 | node/3095 | ships/sea-spirit     | en       |
| 1274 | node/3095 | ships/sea-spirit     | fr       |
| 1275 | node/3096 | ships/legend         | en       |
| 1276 | node/3096 | ships/legend         | fr       |
| 1277 | node/3097 | ships/sea-adventurer | en       |
| 1278 | node/3097 | ships/sea-adventurer | fr       |
+------+-----------+----------------------+----------+

When Neutral Paths is enabled and a Migrate import is run all of the rows are set to 'und', which causes duplicates rather than inserting a single row.

+------+-----------+----------------------+----------+
| pid  | source    | alias                | language |
+------+-----------+----------------------+----------+
| 1271 | node/3094 | ships/sea-explorer   | und      |
| 1272 | node/3094 | ships/sea-explorer   | und      |
| 1273 | node/3095 | ships/sea-spirit     | und      |
| 1274 | node/3095 | ships/sea-spirit     | und      |
| 1275 | node/3096 | ships/legend         | und      |
| 1276 | node/3096 | ships/legend         | und      |
| 1277 | node/3097 | ships/sea-adventurer | und      |
| 1278 | node/3097 | ships/sea-adventurer | und      |
+------+-----------+----------------------+----------+

I'll be checking to see if this can be handle in the Migration process.

Comments

jeff.hartman created an issue. See original summary.

jeff.hartman’s picture

Issue summary: View changes