Repository navigation
TUL: sync robots.txt with dtq-dev (remove /handle) - #1643
Merged
Merged
Conversation
Removes the stale `Disallow: /handle` (and `/browse`) rules and adds the Discovery facet/scoped-search rules that protect SSR from crawler load. Refs dataquest-dev/dspace-customers#1082 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Kasinhou
requested review from
milanmajchrak
and
a balanced review from Copilot
October 20, 2026 10:54
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
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.
Problem
The
robots.txtfor TUL had not been updated in a long time and had drifted fromdtq-dev. Most notably it still contained:/handledoes not belong in the TUL robots file, and the file was also missing the newer crawler rules thatdtq-devalready has.Change
Synced
src/robots.txt.ejswith thedtq-devversion — the file is now identical todtq-dev:Disallow: /handleandDisallow: /browse.Disallow: /entities/*?fDisallow: /collections/*/searchDisallow: /communities/*/searchDisallow: /*?f.Disallow: /*&f.Not taken from vanilla
Vanilla 8.x and newer also has these two rules (upstream commit 9b03e82):
They do nothing on TUL. On 7.6 the community page has no search. Its lists page with
cmcl.pageandcmscm.page, notspc.page. Facet links on collection pages are already blocked by/*?f.. Vanilla did not add these rules todspace-7_xeither.🤖 Generated with Claude Code