Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
Can you check in index action if the page is opened in edit mode?
if (PageEditing.PageIsInEditMode) { // ... }
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.