Repository navigation
fix(web): let crawlers in so search engines read the app's noindex - #1057
Merged
Merged
Conversation
robots.txt shut every crawler but the link previews out. Google never fetched a page, never read its `noindex`, and listed belege.le-space.de anyway: Search Console reports "Indexed, though blocked by robots.txt". Every page already says `noindex` (app.html, static/en/index.html), so robots.txt now disallows nothing. Link previews (#343) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Google Search Console reports belege.le-space.de as "Indexed, though blocked by robots.txt".
robots.txtshut every crawler but the link-preview bots out (#343). Every page already carries<meta name="robots" content="noindex, nofollow">(app.html,static/en/index.html), but a crawler has to fetch a page to read that. Blocked, Google never saw thenoindexand listed the start page from links alone, without a snippet.app/static/robots.txt:User-agent: */Allow: /, nothing disallowed; comment says why.app/src/lib/social.spec.js: the robots test now checks that nothing is disallowed. Thenoindexchecks on both entry pages are unchanged.Link previews keep working: the preview bots were allowed before and still are.
Checked:
vitest run src/lib/social.spec.js src/lib/pwa/cache-rules.spec.js, 8 of 8 passed.After the deploy, Search Console → the URL → "Validate fix" speeds up the removal.
🤖 Generated with Claude Code