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

Link to mod_label redirects to the course, not to the label

    XMLWordPrintable

    Details

      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

        1. MDL-62244.jpg
          6 kB
          Anna Carissa Sadia

          Issue Links

            Activity

              People

              Assignee:
              sheesania sheesania
              Reporter:
              peter.spicer Peter Spicer
              Peer reviewer:
              Mihail Geshoski Mihail Geshoski
              Integrator:
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m