Skip to content

fix: certificate page being indexed in google search which should not be #3348

Merged
ahtesham-quraish merged 1 commit into
mainfrom
ahtesham/certficate-indexing
May 19, 2026
Merged

fix: certificate page being indexed in google search which should not be #3348
ahtesham-quraish merged 1 commit into
mainfrom
ahtesham/certficate-indexing

Conversation

@ahtesham-quraish
Copy link
Copy Markdown
Contributor

What are the relevant tickets?

https://github.com/mitodl/hq/issues/11232

Description (What does it do?)

Certificates should not be indexed by Google search. They are public, for ease of sharing, but they shouldn’t be searchable.

Screenshots (if appropriate):

  • Desktop screenshots
  • Mobile width screenshots

How can this be tested?

For testing you should get connected with prod backend NEXT_PUBLIC_MITOL_API_BASE_URL="https://api.learn.mit.edu"
and visit the following url http://open.odl.local:8062/certificate/course/8a2ebafe-40b3-4178-8860-ea9bd063f3cd and View page source you should see <meta name="robots" content="noindex"/>

Additional Context

Copilot AI review requested due to automatic review settings May 18, 2026 08:05
@github-actions
Copy link
Copy Markdown

OpenAPI Changes

No changes detected

View full changelog

Unexpected changes? Ensure your branch is up-to-date with main (consider rebasing).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a robots: { index: false } directive to the certificate page metadata so public certificate pages (which are shareable but should not be discoverable via search) are not indexed by search engines. standardizeMetadata spreads otherMeta last, so this override is correctly applied on top of the env-based default.

Changes:

  • Set robots: { index: false } in generateMetadata for the certificate page, producing <meta name="robots" content="noindex">.

@ahtesham-quraish ahtesham-quraish changed the title fix: certificate page being indexed in google search fix: certificate page being indexed in google search which should not be May 18, 2026
Copy link
Copy Markdown
Contributor

@daniellefrappier18 daniellefrappier18 left a comment

Choose a reason for hiding this comment

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

LGTM

@ahtesham-quraish ahtesham-quraish merged commit e586766 into main May 19, 2026
14 checks passed
@ahtesham-quraish ahtesham-quraish deleted the ahtesham/certficate-indexing branch May 19, 2026 05:44
@odlbot odlbot mentioned this pull request May 19, 2026
5 tasks
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.

3 participants