MDL-32508 course/view.php: action cleanup
MDL-32508 course/view.php: action cleanup

After doing actions redirect back to the 'real url' in order to
prevent problems with caching/bookmarking bad urls

dilawar/moodle