You are here

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

Same filename and directory in other branches
  1. 8 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.current_redirect:
  8. path: '/user/current'
  9. defaults:
  10. _controller: '\Drupal\user_current_paths\Controller\UserCurrentPathsController::wildcardActionRedirect'
  11. wildcardaction: 'view'
  12. requirements:
  13. _user_is_logged_in: 'TRUE'
  14. user_current_paths.wildcardaction_redirect:
  15. path: '/user/current/{wildcardaction}'
  16. defaults:
  17. _controller: '\Drupal\user_current_paths\Controller\UserCurrentPathsController::wildcardActionRedirect'
  18. requirements:
  19. _user_is_logged_in: 'TRUE'