Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
52aba709
Commit
52aba709
authored
May 18, 2017
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #32506
The host should not be modified, nor is it needed for the redirect.
parent
4de3d0b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/controllers/concerns/routable_actions.rb
app/controllers/concerns/routable_actions.rb
+1
-1
No files found.
app/controllers/concerns/routable_actions.rb
View file @
52aba709
...
...
@@ -32,7 +32,7 @@ module RoutableActions
if
canonical_path
.
casecmp
(
requested_path
)
!=
0
flash
[
:notice
]
=
"
#{
routable
.
class
.
to_s
.
titleize
}
'
#{
requested_path
}
' was moved to '
#{
canonical_path
}
'. Please update any links and bookmarks that may still have the old path."
end
redirect_to
request
.
original_
url
.
sub
(
requested_path
,
canonical_path
)
redirect_to
request
.
original_
fullpath
.
sub
(
requested_path
,
canonical_path
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment