Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.9.6, 1.9.7, 1.9.8, 1.9.9, 2.6.3, 2.7, 2.9
-
MOODLE_19_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_29_STABLE
-
MOODLE_29_STABLE
-
21724-29
-
Description
I've added code to course/edit.php and course/edit_form.php to allow someone to add a returnurl paramater when calling the course edit page that will then redirect after saving. For example, if you called /course/edit.php?id=1&returnurl=/index.php; after the form is saved, you'll be directed to /index.php.
I've created a patch from my version 1.9.6 install that will make the changes, but I'm new to creating patches for this, so let me know if the file isn't in the right format.
I based this on a discussion with Tim Hunt in the forums (http://moodle.org/mod/forum/discuss.php?d=126516#p630665)