Commit 26b46f8d authored by linclark's avatar linclark Committed by effulgentsia

Switch user_page to redirect to prevent router test failures.

parent e2c30c93
......@@ -420,9 +420,7 @@ function user_page() {
global $user;
if ($user->uid) {
// @todo: Cleaner sub request handling.
$request = drupal_container()->get('request');
$subrequest = Request::create('/user/' . $user->uid, 'GET', $request->query->all(), $request->cookies->all(), array(), $request->server->all());
return drupal_container()->get('http_kernel')->handle($subrequest, HttpKernelInterface::SUB_REQUEST);
drupal_goto('user/' . $user->uid);
}
else {
return drupal_get_form('user_login');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment