Issue #2344257 by slashrsm: Dynamically generate routes.

https://www.drupal.org/node/2344257