Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project Forum
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Project Forum
Project Forum
Commits
e2aad0e1
Verified
Commit
e2aad0e1
authored
Jul 26, 2022
by
Martin Mladenov
Browse files
Options
Downloads
Patches
Plain Diff
Redirect to dashboard after entering programmes
parent
ec2b9361
Loading
Loading
2 merge requests
!787
Project Forum Release 2.8.2
,
!774
Streamline registration and login process
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/user_programmes_controller.rb
+3
-3
3 additions, 3 deletions
app/controllers/user_programmes_controller.rb
with
3 additions
and
3 deletions
app/controllers/user_programmes_controller.rb
+
3
−
3
View file @
e2aad0e1
...
...
@@ -31,13 +31,13 @@ class UserProgrammesController < ApplicationController
url
=
params
[
:cont_url
]
if
url
.
blank?
# If there is no continuation url, redirect to
user_path
redirect_to
user
_path
(
current_user
)
# If there is no continuation url, redirect to
dashboard
redirect_to
root
_path
elsif
url
.
start_with?
(
'/'
)
begin
refer_url
=
URI
.
parse
(
url
).
path
rescue
URI
::
InvalidURIError
refer_url
=
user
_path
(
current_user
)
refer_url
=
root
_path
end
# If the url starts with / then we trust it and we can redirect to it
...
...
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
sign in
to comment