Created
November 19, 2019 06:45
-
-
Save simesy/b23f3720d1d845c314a5d1efa76aed26 to your computer and use it in GitHub Desktop.
Re-save redirects if manipulating redirect table directly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If the values change the hash needs to be fixed. | |
| drush eval '$r=\Drupal::entityQuery("redirect")->execute(); $x=\Drupal\redirect\Entity\Redirect::loadMultiple($r); foreach($x as $y) { $y->save(); }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment