Skip to content

[GOVCMS-15030] Skip robots.txt overwrite from Drupal core.#555

Open
barbun wants to merge 1 commit into
govCMS:4.x-developfrom
barbun:feature/GOVCMS-15030_robotstxt
Open

[GOVCMS-15030] Skip robots.txt overwrite from Drupal core.#555
barbun wants to merge 1 commit into
govCMS:4.x-developfrom
barbun:feature/GOVCMS-15030_robotstxt

Conversation

@barbun
Copy link
Copy Markdown
Contributor

@barbun barbun commented Jun 4, 2026

Issue

GovCMS ships RobotsTxt module and when enabled robots.txt is generated dynamically per site (and configurable in the admin UI). Drupal core’s Composer scaffold, by default, still installs a static web/robots.txt on every composer install / composer update.

When that file exists on disk, the web server typically serves it before Drupal boots. Crawlers and tools then see core’s default rules, not GovCMS/RobotsTxt configuration.

Proposed solution

Disable scaffold for the path "[web-root]/robots.txt": false to stop Composer from creating or overwriting robots.txt, so RobotsTxt remains the single source of truth.

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.

1 participant