Skip to main content
  1. Posts/

Drupal 8 - Update Routes

·37 words·1 min·
Drupal 8 Drush Drupal Development

I recently update my modules routing.yml file and needed to update the routes in my Drupal 8 project.

Clearing the caches won’t update the routes.

To update the routes run this command with Drush:

drush ev '\Drupal::service("router.builder")->rebuild();'
Michael Michalak
Author
Michael Michalak
Experienced Drupal consultant and Fractional CTO with over 13 years of expertise in backend development, optimization, and securing Drupal applications, specializing in custom module development, migrations, and enterprise integrations across various industries.