This project is not covered by Drupal’s security advisory policy.

Logs the http status for each sitemap location in the status report and adds an entry to the Toolbar. Optionally checks for errors or specific elements in the DOM.

Use case: while doing a deployment (production or pull request based environment),
be able to check the status of each page from the sitemap based on a production database.
As unit/E2E tests might contain testing gaps and/or possibly not catch "content based" issues (like redirects/aliases), this can be used as an affordable smoke test.

Sitemap status 2xx

Status check Toolbar result Executed by default
5xx http status Yes
DOM error Optional
DOM missing element Optional
4xx http status ⚠️ Yes
3xx, 2xx http status Yes
Unreachable Yes
Not checked yet n/a

Dependencies

Configuration

Can be used without any configuration via drush.

Optional configuration for UI or cron based checks:
Configuration > Development > Sitemap status (/admin/config/development/sitemap-status).

Drush can be used on build e.g. within a post-rollout task. Example: generate the sitemap then run the check.

- run:
    name: drush ssg
    command: drush simple-sitemap:generate
    service: cli
- run:
    name: drush ssc
    command: drush sitemap-status:check
    service: cli

Usage and roadmap

drush sitemap-status:check (alias: drush ssc)

For drush options and the roadmap view the project readme.

Supporting organizations: 

Project information

Releases