I suspect this has an easy solution but I'm banging my head and hopefully someone willing to kindly help me out.
Quick version:
Is there a wpdiscus action hook that fires after a comment has saved, that will also allow for a javascript page redirect without the "unsaved changes" popup confirmation dialog firing? I've tried wpdiscuz_after_comment_post but the page believes that there are unsaved changes no matter what I do.
Longer version with details:
I have a post called "New Topic" that I plan to use as a special spot where users can submit to any Topic based on a query_var in the URL (so ?topic_id=345 etc.)
I have a function working using the standard WP 'comment_post' action, which basically looks for the topic id, then updates the comment comment_post_ID to whatever topic post the comment should be moved to.
All that works, but I want to redirect after the comment is saved, to the topic post where the new comment has ben assigned.
PHP redirect won't work because the headers have been sent. I tried echoing javascipt with window.href= etc., and that does work, but I get the popup confirmation that there are unsaved changes on the page. I need to avoid that.
Any suggestions? Any built in redirect hooks that I can leverage maybe?
Thanks!

