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
03c303d7
Commit
03c303d7
authored
May 13, 2020
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add redirect for project tags page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
19031b99
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
config/routes/project.rb
config/routes/project.rb
+1
-1
spec/routing/project_routing_spec.rb
spec/routing/project_routing_spec.rb
+2
-0
No files found.
config/routes/project.rb
View file @
03c303d7
...
...
@@ -482,7 +482,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
# Legacy routes.
# Introduced in 12.0.
# Should be removed with https://gitlab.com/gitlab-org/gitlab/issues/28848.
Gitlab
::
Routing
.
redirect_legacy_paths
(
self
,
:mirror
,
Gitlab
::
Routing
.
redirect_legacy_paths
(
self
,
:mirror
,
:tags
,
:cycle_analytics
,
:mattermost
,
:variables
,
:triggers
,
:environments
,
:protected_environments
,
:error_tracking
,
:alert_management
,
:serverless
,
:clusters
,
:audit_events
,
:wikis
,
:merge_requests
,
...
...
spec/routing/project_routing_spec.rb
View file @
03c303d7
...
...
@@ -230,6 +230,8 @@ describe 'project routing' do
expect
(
delete
(
'/gitlab/gitlabhq/-/tags/feature%2B45/foo/bar/baz'
)).
to
route_to
(
'projects/tags#destroy'
,
namespace_id:
'gitlab'
,
project_id:
'gitlabhq'
,
id:
'feature+45/foo/bar/baz'
)
expect
(
delete
(
'/gitlab/gitlabhq/-/tags/feature@45/foo/bar/baz'
)).
to
route_to
(
'projects/tags#destroy'
,
namespace_id:
'gitlab'
,
project_id:
'gitlabhq'
,
id:
'feature@45/foo/bar/baz'
)
end
it_behaves_like
'redirecting a legacy project path'
,
"/gitlab/gitlabhq/tags"
,
"/gitlab/gitlabhq/-/tags"
end
# project_deploy_keys GET /:project_id/deploy_keys(.:format) deploy_keys#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