diff -u b/core/modules/user/user.module b/core/modules/user/user.module --- b/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -1819,7 +1819,7 @@ $links = array( 'account' => array( 'title' => t('View profile'), - 'route_name' => 'user.page', + 'href' => 'user', 'html' => TRUE, 'attributes' => array( 'title' => t('User account'), @@ -1827,8 +1827,7 @@ ), 'account_edit' => array( 'title' => t('Edit profile'), - 'route_name' => 'user.edit', - 'route_parameters' => array('user' => $user->id()), + 'href' => 'user/' . $user->id() . '/edit', 'html' => TRUE, 'attributes' => array( 'title' => t('Edit user account'), @@ -1836,7 +1835,7 @@ ), 'logout' => array( 'title' => t('Log out'), - 'route_name' => 'user.logout', + 'href' => 'user/logout', ), ); } @@ -1844,7 +1843,7 @@ $links = array( 'login' => array( 'title' => t('Log in'), - 'route_name' => 'user.login', + 'href' => 'user', ), ); } @@ -1863,7 +1862,7 @@ $links = array( 'account' => array( 'title' => t('View profile'), - 'href' => 'user', + 'route_name' => 'user.page', 'html' => TRUE, 'attributes' => array( 'title' => t('User account'), @@ -1871,7 +1870,8 @@ ), 'account_edit' => array( 'title' => t('Edit profile'), - 'href' => 'user/' . $user->id() . '/edit', + 'route_name' => 'user.edit', + 'route_parameters' => array('user' => $user->id()), 'html' => TRUE, 'attributes' => array( 'title' => t('Edit user account'), @@ -1879,7 +1879,7 @@ ), 'logout' => array( 'title' => t('Log out'), - 'href' => 'user/logout', + 'route_name' => 'user.logout', ), ); } @@ -1887,7 +1887,7 @@ $links = array( 'login' => array( 'title' => t('Log in'), - 'href' => 'user', + 'route_name' => 'user.login', ), ); } only in patch2: unchanged: --- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php @@ -719,7 +719,7 @@ protected function drupalLogout() { // Make a request to the logout page, and redirect to the user page, the // idea being if you were properly logged out you should be seeing a login // screen. - $this->drupalGet('user/logout', array('query' => array('destination' => 'user'))); + $this->drupalGet(\Drupal::url('user.logout'), array('query' => array('destination' => 'user'))); $this->assertResponse(200, 'User was logged out.'); $pass = $this->assertField('name', 'Username field found.', 'Logout'); $pass = $pass && $this->assertField('pass', 'Password field found.', 'Logout');