I am running into an issue where I have a controller that I want to behave a certain way for the end user, but I still want the editors to be able to modify the content on the page. Basically, when calling the controller, I want to say that if it was a GET request, they should be redirected back to a form page, but if they submitted a POST request to that page, then it displays the page as normal. The problem is that when viewing the page in preview or edit mode, it is doing the redirect instead of allowing the editor to stay on the page.
I am running into an issue where I have a controller that I want to behave a certain way for the end user, but I still want the editors to be able to modify the content on the page. Basically, when calling the controller, I want to say that if it was a GET request, they should be redirected back to a form page, but if they submitted a POST request to that page, then it displays the page as normal. The problem is that when viewing the page in preview or edit mode, it is doing the redirect instead of allowing the editor to stay on the page.