geerlingguy / jeffgeerling-com

Drupal Codebase for JeffGeerling.com
https://www.jeffgeerling.com
GNU General Public License v2.0
40 stars 2 forks source link

Ensure redirects are migrated into Drupal 8 site #1

Closed geerlingguy closed 4 years ago

geerlingguy commented 4 years ago

For this issue, I copied the template out of the redirect module's migrations folder, then moved it into my site config directory with the filename migrate_plus.migration.upgrade_d7_path_redirect.yml.

I then ran drush cim to import the migration configuration.

Finally, I ran the redirect migration: docker-compose exec drupal bash -c 'drush migrate-import upgrade_d7_path_redirect'

geerlingguy commented 4 years ago

I noticed that in Drupal 7 there are things tracked like the count (number of times used) and 'last accessed' date for redirects, but that activity is not tracked or shown in the Drupal 8 version:

Screen Shot 2020-04-14 at 12 25 32 PM

To add redirect metrics in Drupal 8, you have to install an extra module, Redirect Metrics.

I think I'll avoid installing that for now as I'm not sure I've ever actually deleted a redirect or had the need to do so... it's nice to have that info, but it's not necessary since there's a bit of a performance tradeoff (probably much more so than in D7).