Commit b171057d authored by Kerri Miller's avatar Kerri Miller

Merge branch 'jejacks0n/add-gitlab-experiment-to-robots-txt' into 'master'

Add experiment routes to robots.txt

See merge request gitlab-org/gitlab!67535
parents 982411c0 1736592a
...@@ -24,6 +24,7 @@ Disallow: /help ...@@ -24,6 +24,7 @@ Disallow: /help
Disallow: /s/ Disallow: /s/
Disallow: /-/profile Disallow: /-/profile
Disallow: /-/ide/ Disallow: /-/ide/
Disallow: /-/experiment
# Restrict allowed routes to avoid very ugly search results # Restrict allowed routes to avoid very ugly search results
Allow: /users/sign_in Allow: /users/sign_in
Allow: /users/*/snippets Allow: /users/*/snippets
......
...@@ -28,6 +28,7 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do ...@@ -28,6 +28,7 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
it 'blocks the requests' do it 'blocks the requests' do
requests = [ requests = [
Gitlab::Experiment::Configuration.mount_at,
'/autocomplete/users', '/autocomplete/users',
'/autocomplete/projects', '/autocomplete/projects',
'/search', '/search',
......
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