Skip to content

DEV: Add site description to crawler homepage view #32845

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

Merged
merged 2 commits into from
May 21, 2025

Conversation

pmusaraj
Copy link
Contributor

In some cases, Google crawlers don't output the meta description but rather they output the first bit of text in the UI. Sometimes that is a mix of table headings, topic titles and excerpts, which don't reflect the site's mission. Adding the description to the homepage header might help.

Internal ticket t/154372

In some cases, Google crawlers don't output the meta description but rather
they output the first bit of text in the UI. Sometimes that is a mix of
table headings, topic titles and excerpts, which don't reflect the site's
mission. Adding the description to the homepage header might help.
get "/top", headers: { "HTTP_USER_AGENT" => "Googlebot" }

expect(response.status).to eq(200)
expect(response.body).to include("This is a test description")
Copy link
Contributor

Choose a reason for hiding this comment

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

Description says "should not" but test says it should include it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, great catch!

@SamSaffron SamSaffron merged commit 2b6efa5 into main May 21, 2025
16 checks passed
@SamSaffron SamSaffron deleted the desc-in-homepage-crawler-header branch May 21, 2025 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants