Add management command to delete redirects to torchbox.com on staging - #445
Add management command to delete redirects to torchbox.com on staging#445helenb wants to merge 1 commit into
Conversation
|
q: would it not make more sense to replace with the staging domain? |
We could do - but to be honest there are hundreds of old redirects and I think it just makes more sense to not have them on staging - e.g. there are ones created as shortlinks for webinars.
It checks the sentry env with |
perphas best done via the CLI as a one-off? |
Description of Changes Made
On staging we have a bunch of redirects which all point to a torchbox.com url. This is as a result of importing the production data. It's potentially very confusing, as people might not notice the redirect - and in a worst case scenario they might accidentally edit a live page with a test thinking they are on staging. This PR adds a management command that allows you to delete all redirects pointing to a
http://torchbox.comurl. At the moment it excludes any media.torchbox.com redirects.How to Test
Try running the script in your local build. Note that as a precaution it can't be run in production.
Screenshots
Expand to see more
MR Checklist
Unit tests
Documentation
Browser testing
Data protection
Light and dark mode
Accessibility
Sustainability
Pattern library