Commit 6779c079 authored by effulgentsia's avatar effulgentsia Committed by effulgentsia

Fix redirect user_page to include current language.

parent fdcd2d2a
......@@ -420,8 +420,7 @@ function user_cancel_confirm($account, $timestamp = 0, $hashed_pass = '') {
function user_page() {
global $user;
if ($user->uid) {
$request = drupal_container()->get('request');
return new RedirectResponse($request->getUriForPath('/user/' . $user->uid));
return new RedirectResponse(url('user/' . $user->uid, array('absolute' => TRUE)));
}
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