BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
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