You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently tried to remove a Retour redirect field i had on a section full of entries. Once i removed the field in the field layout editor for the section, i re-saved the section to update all existing entries.
However this didn't remove the dynamic redirects from Retour - looking in the retour section in the CP sidebar showed the dynamic redirects still in place (and the redirects were still in place on the front-end). I double checked to confirm that the field was no longer showing when editing an entry in that section.
The one thing i didnt try was deleting that field altogether to see if that worked in removing those dynamic redirects. In the end i completely uninstalled the plugin and reinstalled it, re-adding static rules that i wanted to keep (which was only a couple).
The text was updated successfully, but these errors were encountered:
I'm not the plugin author, but I think this may be partly due to how Craft works. When you disable/remove a field from a section, it does not actually remove the data (you can actually use this to your advantage to create "hidden fields"). So there would need to be a way to remove the data from the entry. I'm not exactly sure of the best approach to that.
The problem is that Retour doesn't really know when a field is removed from a layout. It could listen for an event to see when this happens, but it removing redirects when a field is removed could be a little dangerous.
Probably there should be a way to delete these redirects, though. I'll make this a feature request.
I recently tried to remove a Retour redirect field i had on a section full of entries. Once i removed the field in the field layout editor for the section, i re-saved the section to update all existing entries.
However this didn't remove the dynamic redirects from Retour - looking in the retour section in the CP sidebar showed the dynamic redirects still in place (and the redirects were still in place on the front-end). I double checked to confirm that the field was no longer showing when editing an entry in that section.
The one thing i didnt try was deleting that field altogether to see if that worked in removing those dynamic redirects. In the end i completely uninstalled the plugin and reinstalled it, re-adding static rules that i wanted to keep (which was only a couple).
The text was updated successfully, but these errors were encountered: