clicking the "add new post" on the "blog menu block" and then adding a new post...
i am navigated successfully to my personal (site) blog page. in which i can not directly
return to the course i was just at before pressing the "add new blog post" link.
i guess the $courseid was not passed on or plain missing from moodle/blog/edit.php "add" action switch.
to fix it, please add after line 101~ (just after " $post->publishstate = 'site'; " ) :
$post->courseid = $courseid;