Redirect workflow prevents save of comment

Topics: Customizing Orchard
Jun 3, 2015 at 10:16 AM
Edited Jun 4, 2015 at 12:41 PM
I have a site where comments require approval, and I set up a workflow to redirect the user to a 'thank you' page after they submit a comment.

The redirect works fine, but the comment itself is now not saved.

I can see that the RedirectActivity issues a Response.Redirect(), which immediately ends the response - so am assuming this means the database transaction is never committed. Is this right?

If so is there a workaround (and should the RedirectActivity use the overload of Response.Redirect() with the endResponse flag set to false)? Any thoughts would be appreciated!