tentapress / redirects
v0.3.4
2026-03-19 21:17 UTC
Requires
- php: ^8.2
- tentapress/admin-shell: <1.0
- tentapress/system: <1.0
README
First-party redirect management for TentaPress.
Plugin Details
| Field | Value |
|---|---|
| ID | tentapress/redirects |
| Version | 0.3.3 |
| Provider | TentaPress\Redirects\RedirectsServiceProvider |
Goal
Provide safe, operator-managed redirect governance so slug changes and migrations do not break public URLs.
Features
- Manual redirect CRUD in admin (
/admin/redirects) - Bulk enable/disable actions from redirect index
- Runtime web middleware for active 301/302 redirects
- Conflict checks against owned static routes
- Loop prevention checks for self/chained redirects
- Slug-change auto redirect generation for pages and posts
- In-form diagnostics preview endpoint for collision/loop checks
- Import mapping report ingestion command for migration redirects
- Redirect lifecycle audit event records
- Policy toggle for auto-applying slug-change redirects
- Suggestion queue with approve/reject workflow
- Import conflict staging into pending suggestions
Admin Menu
| Label | Route | Capability | Parent |
|---|---|---|---|
| Redirects | tp.redirects.index |
manage_seo |
Settings |
Commands
php artisan tp:redirects:import-mappings storage/app/tp-import-reports/<token>.json
Development
php artisan tp:plugins sync
php artisan tp:plugins enable tentapress/redirects
composer test:filter -- Redirects
Rollout Checklist
- Run
php artisan tp:plugins sync. - Enable plugin:
php artisan tp:plugins enable tentapress/redirects. - Run migrations:
php artisan migrate. - Validate admin routes:
/admin/redirects/admin/redirects/suggestions/admin/redirects/settings
- Validate runtime redirects with sample 301 and 302 records.
- Run regression tests:
composer test:filter -- Redirects.
Rollback Guidance
- Disable plugin:
php artisan tp:plugins disable tentapress/redirects --force. - Confirm redirect middleware no longer applies (
/legacy-urlshould no longer redirect). - If needed, restore previous database backup for
tp_redirects,tp_redirect_events, andtp_redirect_suggestions.