Migration of content from Drupal 7 to Drupal 10.
I described the migration configuration in yml files separately for each content type and for each vocabulary, imported them, and executed the migrations. However, in each configuration, I did not specify id: id
in the process
section so that each piece of content or term would receive a new ID in Drupal 10, rather than the one it had in Drupal 7.
Now, I've migrated the URL aliases. For example, for the term "Apparel" I see:
Alias: /category/apparel
System path: /taxonomy/term/6018
However, there is no term with id=6018 because that was the ID for the term in Drupal 7. Now it has a completely different ID, which was generated during the migration. If I open the page /category/apparel or /taxonomy/term/6018, I see "The requested page could not be found."
Could you please advise what I need to write in the URL alias migration configuration so that the 'System path' ends with the new IDs as they are in Drupal 10?
id: upgrade_d7_url_alias
migration_tags:
- 'Drupal 7'
- Content
migration_group: migrate_drupal_7
label: 'URL aliases'
source:
plugin: d7_url_alias
constants:
slash: /
process:
path:
-
plugin: concat
source:
- constants/slash
- source
alias:
-
plugin: concat
source:
- constants/slash
- alias
destination:
plugin: 'entity:path_alias'
migration_dependencies:
required: { }