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

fix(ssr): remove unnecessary robots tags #11139

Merged
merged 2 commits into from
May 16, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented May 16, 2024

Summary

(MP-1109, MP-1110)

Problem

  1. Robots tag for 404 page is unnecessary, as it is ignored anyways.
  2. Robots tag with value "index, follow" is unnecessary, as it is the default.

Solution

Remove these robots tags.


How did you test this change?

  1. Added BUILD_ALWAYS_ALLOW_ROBOTS=true to my .env file.
  2. Ran yarn build:prepare.
  3. Verified that client/build/en-us/index.html and client/build/en-us/_spa/404.html both no longer have a robots tag (previously index, follow).
  4. Verified that client/build/en-us/plus/collections/index.html still has a robots tag with value noindex,nofollow.

1. Robots tag for 404 page is unnecessary, as it is ignored anyways.
2. Robots tag with value "index, follow" is unnecessary, as it is the default.
@caugner caugner requested a review from a team as a code owner May 16, 2024 03:26
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fiji-flo fiji-flo merged commit 1207158 into main May 16, 2024
13 checks passed
@fiji-flo fiji-flo deleted the MP-1109-MP-1110-remove-unnecessary-robots-tags branch May 16, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants