Sitemap Status
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.
Dependencies
- Simple XML Sitemap
- curl and libxml PHP extensions
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.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.0.0-alpha5 | Pre-release | May 9, 2023 |