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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
59d85cb8
Commit
59d85cb8
authored
Mar 11, 2020
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redirect project members to scoped page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
e4e69acb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
config/routes/project.rb
config/routes/project.rb
+1
-1
spec/routing/project_routing_spec.rb
spec/routing/project_routing_spec.rb
+1
-0
No files found.
config/routes/project.rb
View file @
59d85cb8
...
...
@@ -68,7 +68,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
namespace
:settings
do
get
:members
,
to:
redirect
(
"%{namespace_id}/%{project_id}/project_members"
)
get
:members
,
to:
redirect
(
"%{namespace_id}/%{project_id}/
-/
project_members"
)
resource
:ci_cd
,
only:
[
:show
,
:update
],
controller:
'ci_cd'
do
post
:reset_cache
...
...
spec/routing/project_routing_spec.rb
View file @
59d85cb8
...
...
@@ -488,6 +488,7 @@ describe 'project routing' do
end
it_behaves_like
'redirecting a legacy project path'
,
"/gitlab/gitlabhq/project_members"
,
"/gitlab/gitlabhq/-/project_members"
it_behaves_like
'redirecting a legacy project path'
,
"/gitlab/gitlabhq/-/settings/members"
,
"/gitlab/gitlabhq/-/project_members"
end
# project_milestones GET /:project_id/milestones(.:format) milestones#index
...
...
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