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

mod_label redirects to the course, not to the label

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.5, 3.4.2, 3.5, 3.6
    • Fix Version/s: None
    • Component/s: Resource
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE

      Description

      If visiting a label directly, e.g. /mod/label/view.php?id=123 the view.php redirects to the course page. While not that common, it really should redirect to the label where possible.

      I'm not really sure if this is a bug or not, but I could see one scenario in which it is - if a user creates a label, marks it as needing completion and sets a date, it will naturally appear in the course overview as an outstanding task, but the 'view' link will not direct to the right place.

      In particular, if the course has a topics format, with sections on their own page, it's entirely possible the view link in this situation will end up pushing the user onto the wrong page (e.g. to the first page of a course where the label is in the second section)

      Happy to add a patch if that helps.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: