Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#8132] Update actions and pages which set "noindex", "nofollow" crawler directives #8223

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add no crawl meta tags to HTML head
Even though we're setting the response header ensure we set a consistent
value in the meta tag.
gbp committed Apr 30, 2024
commit 218c529ad49d760a06625f8047e2cedf9a84e795
1 change: 1 addition & 0 deletions app/controllers/concerns/robots_headers.rb
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ module RobotsHeaders
private

def set_no_crawl_headers
@no_crawl = true
headers['X-Robots-Tag'] = 'noindex, nofollow'
end
end