Commit 87f0445b authored by fjsanpedro's avatar fjsanpedro

Allow in robots namespaces and projectswith .git on it

parent cfc6a8bf
---
title: Fix bug with robots and .git suffix
merge_request: 45866
author:
type: fixed
......@@ -42,7 +42,7 @@ Disallow: /groups/*/group_members
# Project details
User-Agent: *
Disallow: /*/*.git
Disallow: /*/*.git$
Disallow: /*/archive/
Disallow: /*/repository/archive*
Disallow: /*/activity
......
......@@ -13,7 +13,8 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
it 'allows the requests' do
requests = [
'/users/sign_in'
'/users/sign_in',
'/namespace/subnamespace/design.gitlab.com'
]
requests.each do |request|
......@@ -60,7 +61,8 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
'/foo/bar/protected_branches',
'/foo/bar/uploads/foo',
'/foo/bar/project_members',
'/foo/bar/settings'
'/foo/bar/settings',
'/namespace/subnamespace/design.gitlab.com/settings'
]
requests.each do |request|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment