I’d like to get the following URLs in Drupal 8:
mysite/user which will redirect to
I already know I can do this
Drupal::service('path.current')->getPath(); to get the current path. Not very useful tho. I wanna build links to send user to other paths, obviously…
How do I get these paths programatically?