Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
acd7dd9c
Commit
acd7dd9c
authored
Sep 20, 2012
by
Larry Garfield
Committed by
Alex Bronstein
Oct 1, 2012
Browse files
Options
Downloads
Patches
Plain Diff
Switch to RedirectResponse for the /user page.
parent
26b46f8d
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/user/user.pages.inc
+3
-2
3 additions, 2 deletions
core/modules/user/user.pages.inc
with
3 additions
and
2 deletions
core/modules/user/user.pages.inc
+
3
−
2
View file @
acd7dd9c
...
...
@@ -7,6 +7,7 @@
use
Symfony\Component\HttpFoundation\JsonResponse
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
use
Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
;
use
Symfony\Component\HttpKernel\HttpKernelInterface
;
...
...
@@ -419,8 +420,8 @@ function user_cancel_confirm($account, $timestamp = 0, $hashed_pass = '') {
function
user_page
()
{
global
$user
;
if
(
$user
->
uid
)
{
// @todo: Cleaner sub request handling.
drupal_goto
(
'user/'
.
$user
->
uid
);
$request
=
drupal_container
()
->
get
(
'request'
);
return
new
RedirectResponse
(
$request
->
getUriForPath
(
'
/
user/'
.
$user
->
uid
)
)
;
}
else
{
return
drupal_get_form
(
'user_login'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment