You are here

user_current_paths.routing.yml in User current paths (user/edit & user/current/*) 8

Same filename and directory in other branches
  1. 2.0.x user_current_paths.routing.yml

File

user_current_paths.routing.yml
View source
  1. user_current_paths.edit_redirect:
  2. path: '/user/edit'
  3. defaults:
  4. _controller: '\Drupal\user_current_paths\Controller\UserCurrentPathsController::editRedirect'
  5. requirements:
  6. _user_is_logged_in: 'TRUE'
  7. user_current_paths.wildcardaction_redirect:
  8. path: '/user/current/{wildcardaction}'
  9. defaults:
  10. _controller: '\Drupal\user_current_paths\Controller\UserCurrentPathsController::wildcardActionRedirect'
  11. wildcardaction: 'view'
  12. requirements:
  13. _user_is_logged_in: 'TRUE'