I am on EE 2.11.2, and I am using the Channel Entries API to create a new channel entry after a user submits a form on the front-end. It saves the entry just fine, but when I redirect the user to the view template for that new entry, most of the time, the page is blank.
If I refresh the page, it displays the entry. Also, if I sleep() in PHP for a bit before redirecting, it seems to show the entry rather than the blank page more often.
Is there a way to get around this? Am I doing something wrong?