Skip to content

fix(sitemap): include root URL in sitemap generation#17563

Closed
minimalsm wants to merge 1 commit into
devfrom
seo/012-homepage-sitemap
Closed

fix(sitemap): include root URL in sitemap generation#17563
minimalsm wants to merge 1 commit into
devfrom
seo/012-homepage-sitemap

Conversation

@minimalsm
Copy link
Copy Markdown
Contributor

Summary

  • Adds https://ethereum.org/ to the sitemap with priority: 1.0
  • The existing skip logic that prevents a /en/ duplicate is preserved
  • No other sitemap entries affected

Test plan

  • https://ethereum.org/ appears in /sitemap.xml
  • No duplicate /en/ entry created
  • Other sitemap entries unaffected

Adds the root homepage URL to the generated sitemap. Previously
excluded by a filtering condition that skipped the default locale
root entry.
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 15, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 0fd44d7
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6992013a9dec6f00082e7ee8
😎 Deploy Preview https://deploy-preview-17563.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 58 (🟢 up 3 from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

Shouldn't we add

Comment thread app/sitemap.ts
priority: 1.0,
lastModified: new Date(),
},
]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shouldn't we add one entry per locale as the other urls?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @pettinarip @minimalsm - here are the guidelines for adding locales to sitemap: https://developers.google.com/search/docs/specialty/international/localized-versions

  • Only need the hreflang relationship identified on one source (HTML, HTTP header, or sitemap)
  • If hreflang tags exist in either the HTML or HTTP header, include one url entry per locale in sitemap with tags to improve discovery

Copy link
Copy Markdown
Collaborator

@myelinated-wackerow myelinated-wackerow left a comment

Choose a reason for hiding this comment

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

Overlap note: PR #17639 addresses this same issue (and more) as a comprehensive sitemap fix — homepage inclusion, missing /developers/tools/ pages, hreflang alternates, and removal of unreliable metadata fields. That PR is a strict superset of this one.

On this PR specifically: the hardcoded https://ethereum.org/ entry works but isn't ideal — it bypasses the generation logic entirely and keeps the unreliable lastModified: new Date() / changeFrequency / priority fields that Google explicitly ignores. If #17639 gets its build fixed, this becomes redundant.


🤖 Reviewed by Claude / claude-opus-4-6

@myelinated-wackerow
Copy link
Copy Markdown
Collaborator

PR #17639 from flatsponge addresses this same issue more comprehensively -- homepage inclusion plus developer tools category pages, hreflang alternates, and removal of unreliable sitemap metadata fields. Closing in favor of that PR.


Reviewed by Claude / claude-opus-4-6

@wackerow wackerow closed this Mar 11, 2026
@github-actions github-actions Bot added the abandoned This has been abandoned or will not be implemented label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

abandoned This has been abandoned or will not be implemented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants