Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DSR Portal
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
DAR
DSR Portal
Merge requests
!5
imp: do not redirect anonymous user after user edit save
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
imp: do not redirect anonymous user after user edit save
imp-no-redirect-for-anonymous
into
1.x
Overview
0
Commits
1
Pipelines
4
Changes
1
Merged
simon
requested to merge
imp-no-redirect-for-anonymous
into
1.x
3 years ago
Overview
0
Commits
1
Pipelines
4
Changes
1
Expand
0
0
Merge request reports
Compare
1.x
version 1
bcfb0916
3 years ago
1.x (base)
and
latest version
latest version
36d24fc6
1 commit,
3 years ago
version 1
bcfb0916
1 commit,
3 years ago
1 file
+
3
−
1
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
dsr_portal.module
+
3
−
1
Options
@@ -65,5 +65,7 @@ function dsr_portal_form_user_form_alter(&$form, &$form_state) {
* Redirect users to their profile pages when submitting the edit form.
*/
function
dsr_portal_user_edit_form_submit
(
$form
,
&
$form_state
)
{
$form_state
->
setRedirect
(
'entity.user.canonical'
,
[
'user'
=>
\Drupal
::
currentUser
()
->
id
()]);
if
(
!
\Drupal
::
currentUser
()
->
isAnonymous
())
{
$form_state
->
setRedirect
(
'entity.user.canonical'
,
[
'user'
=>
\Drupal
::
currentUser
()
->
id
()]);
}
}