Skip to content

Commit

Permalink
Merge pull request #1424 from alphagov/revert-noindex
Browse files Browse the repository at this point in the history
Revert "Add a meta noindex tag to any page which isn't first"
  • Loading branch information
tijmenb authored Jun 6, 2018
2 parents 1b67b3c + b6d9b9a commit b08bc0f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
>
<ul class="pub-c-pagination__list" data-module="track-click">
<% if local_assigns.include?(:previous_page) %>
<%# hoisted up to the <head> by slimmer %>
<meta name="robots" content="noindex" />

<li class="pub-c-pagination__item pub-c-pagination__item--previous">
<a href="<%= previous_page[:url] %>"
class="pub-c-pagination__link"
Expand Down
1 change: 0 additions & 1 deletion test/govuk_component/previous_and_next_navigation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def component_name
label: "1 of 3"
})

assert_select "meta[name='robots'][content='noindex']"
assert_select ".pub-c-pagination[role='navigation']"
assert_select ".pub-c-pagination__link-title", text: "Previous page"
assert_select ".pub-c-pagination__link-label", text: "1 of 3"
Expand Down

0 comments on commit b08bc0f

Please sign in to comment.