Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82525

User profile hyperlink in grader report uses incorrect query string and directs to wrong profile page

XMLWordPrintable

      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:

      1. Access a test course with at least one Student enrolled
      2. Go to Participants
      3. Right click the Student's name and use 'copy link address' in your browser - paste the result somewhere e.g. text editor
      4. Go to Grades
      5. 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

            pholden Paul Holden
            prankin Phillip Rankin
            Luca Bösch Luca Bösch
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 16 minutes
                16m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.