Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

seo: publish privacy at /privacy so the sitemap stops advertising a redirect - #17

Merged
MichalAFerber merged 1 commit into
mainfrom
seo/privacy-canonical-url
Aug 11, 2026
Merged

MichalAFerber merged 1 commit into
mainfrom
seo/privacy-canonical-url

Conversation

@MichalAFerber

Copy link
Copy Markdown
Owner

jekyll-sitemap emits page.url, which was /privacy.html. Cloudflare Pages serves clean URLs, so that address 308s to /privacy — the sitemap was pointing crawlers at a redirect while canonical_url already pointed at the destination.

/privacy.html   308 -> https://gsamanager.org/privacy
/privacy        200

permalink: /privacy moves page.url onto the URL that answers 200.

The built file does not change

Worth stating, because it's what makes this safe: permalink: /privacy with no trailing slash still writes privacy.html. Pages' own /privacy.html → /privacy redirect is untouched and the old address keeps working, so no _redirects entry is needed. (I added one first, then removed it after the build showed the filename was unchanged.)

This matches the intent already recorded in _config.yml, where /install/ is kept out of the sitemap to avoid "Page with redirect" in Search Console.

Verification

Production Jekyll build:

_site/privacy.html          unchanged
sitemap.xml                 https://gsamanager.org/  +  https://gsamanager.org/privacy
rel=canonical               https://gsamanager.org/privacy

🤖 Generated with Claude Code

https://claude.ai/code/session_0119vXMJC7FKdDTYJkLVLusg

…edirect

jekyll-sitemap emits page.url, which was /privacy.html. Cloudflare Pages serves
clean URLs, so that address 308s to /privacy — the sitemap was pointing crawlers
at a redirect while the canonical already pointed at the destination. The estate
SEO sweep flags exactly that.

`permalink: /privacy` moves page.url onto the URL that answers 200. The built
file is still privacy.html, so Pages' own /privacy.html -> /privacy redirect is
untouched and the old address keeps working; nothing needs a _redirects entry.

This matches the intent already recorded in _config.yml, where the /install/
landing page is kept out of the sitemap to avoid "Page with redirect" in Search
Console.

Verified with a production Jekyll build: _site/privacy.html unchanged, sitemap
now lists https://gsamanager.org/privacy, canonical agrees.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0119vXMJC7FKdDTYJkLVLusg
@MichalAFerber
MichalAFerber merged commit bcb88dc into main Aug 11, 2026
1 check passed
@MichalAFerber
MichalAFerber deleted the seo/privacy-canonical-url branch August 11, 2026 01:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant