-
Bug
-
Resolution: Fixed
-
Minor
-
4.3 regressions, 4.3.4, 4.4.1
Summary:
The query string for the profile page hyperlinked to a user's name in the Grader report screen is incorrect, and redirects to the site level profile instead of course level profile page.
Steps to replicate:
- Access a test course with at least one Student enrolled
- Go to Participants
- Right click the Student's name and use 'copy link address' in your browser - paste the result somewhere e.g. text editor
- Go to Grades
- Right click the same Student's name and use 'copy link address' again - paste the result somewhere e.g. text editor
Observed behaviour:
The URL from the Grader report is formatted as follows:
https://sandbox.moodledemo.net/user/view.php?id=4&courseid=2 |
Clicking this link causes the viewing user to be redirected to the site level profile page at
https://sandbox.moodledemo.net/user/view.php?id=4 |
The URL from the Participants page is formatted correctly:
https://sandbox.moodledemo.net/user/view.php?id=4&course=2 |
Clicking this link causes the viewing user to be directed to the course level user profile page for the selected user.
As the link in the Grader report has a parameter value of 'courseid' instead of 'course', users are not sent to the course profile page.
Expected behaviour:
Both URLs are formatted with the correct parameter (course instead of courseid) and direct to the course level user profile page.
Other notes:
- Could not be replicated in Moodle 4.1
- Could replicate in Moodle 4.4.1
- Could replicate in Moodle 4.3.4