-
Bug
-
Resolution: Not a bug
-
Minor
-
None
-
4.1.18, 4.5.5, 5.0
-
None
-
MOODLE_401_STABLE, MOODLE_405_STABLE, MOODLE_500_STABLE
When submitting any activity/resource form (e.g. Quiz) with a validation error, course/modedit.php reloads without preserving URL parameters such as section, sr, or return. This causes the browser's back and forward buttons to behave unexpectedly (e.g., going to an error page ).
Steps to Reproduce:
- Add a new Quiz activity to a course.
- Enter a validation error by setting the Close date earlier than Open date.
- Submit the form.
Expected Result:
The form should show validation errors while preserving the original URL parameters (section=, sr=, return=, etc.), so browser navigation continues to work.
Actual Result:
The page reloads without URL parameters. Clicking the browser back button and forward will return to an error page.