Skip to content
Snippets Groups Projects
Commit 26b46f8d authored by Lin Clark's avatar Lin Clark Committed by Alex Bronstein
Browse files

Switch user_page to redirect to prevent router test failures.

parent e2c30c93
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment