Skip to content

Commit

Permalink
Merge pull request #1174 from alphagov/noindex-search-pages
Browse files Browse the repository at this point in the history
Mark search results pages as `noindex`
  • Loading branch information
robinjam authored Aug 7, 2023
2 parents bc66411 + ecccc44 commit fd80ed5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/search/search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
t('.results_page_title', query: search_term) :
t('.search_results') %><% end %>
<% content_for :head do %>
<meta name="robots" content="noindex">
<% end %>

<form action="/search" method="GET">
<main role="main" id="main-content" class="govuk-main-wrapper">
<div class="govuk-width-container">
Expand Down

0 comments on commit fd80ed5

Please sign in to comment.