Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
42f9693d
Unverified
Commit
42f9693d
authored
2 years ago
by
Claire
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix PermalinkRedirector not applying to users with moved accounts (#22497)
Fixes #22262
parent
83888739
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/concerns/web_app_controller_concern.rb
+2
-2
2 additions, 2 deletions
app/controllers/concerns/web_app_controller_concern.rb
with
2 additions
and
2 deletions
app/controllers/concerns/web_app_controller_concern.rb
+
2
−
2
View file @
42f9693d
...
...
@@ -4,7 +4,7 @@ module WebAppControllerConcern
extend
ActiveSupport
::
Concern
included
do
before_action
:redirect_unauthenticated_to_permalinks!
prepend_
before_action
:redirect_unauthenticated_to_permalinks!
before_action
:set_app_body_class
before_action
:set_referrer_policy_header
end
...
...
@@ -18,7 +18,7 @@ module WebAppControllerConcern
end
def
redirect_unauthenticated_to_permalinks!
return
if
user_signed_in?
return
if
user_signed_in?
&&
current_account
.
moved_to_account_id
.
nil?
redirect_path
=
PermalinkRedirector
.
new
(
request
.
path
).
redirect_path
...
...
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