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

'Absolute 'direct links to sections (course/view.php?id=25122#sectionid-346124-title) do not work any more, only course/view.php?id=25122#section-4

    XMLWordPrintable

Details

    • 1
    • HQ Sprint 1.2 Moppies

    Description

      In Moodle ≤ 3.11 it was possible to direct link to a section by putting an anchor to the section id in the URL.
      That possibility has gone in 4.0 (lost functionality).
      It would be required for such links to function again, because with the section-4 link, when a new section is inserted before the link shifts to a different course section.
      Linking to 'unmodifiable' course section URLs is important e.g. when you insert hard links in PDF for example. Or imagine a gamified approach when after a completion a link to a section becomes visible and clickable. You don't want to adopt those links all the time when a new section is inserted.

      Thanks for taking into consideration.
      I hope there's a simple solution which doesn't tick screen readers into reading out too much.

      I couldn't find any existing issue but MDL-31842 and MDL-40416 are somehow related to this and might be fixed with this issue.

      Reproduction steps:

      1. Create a course with some sections.
      2. Give section 4 a title "Target".
      3. Copy the link to section 4 from the course navigation and add it to a label.
      4. Verify clicking on the link jumps to the section "Target".
      5. Add a section and move it to position 3 (or anywhere before "Target").
      6. Note that clicking on the link does not jump to the section "Target" any more.

      Best,
      Luca

      Attachments

        1. 400.png
          400.png
          140 kB
        2. 401.png
          401.png
          115 kB
        3. Master.png
          Master.png
          97 kB
        4. mdl-76225-me.patch
          1 kB

        Issue Links

          Activity

            People

              tusefomal Ferran Recio
              lucaboesch Luca Bösch
              Stephan Robotta Stephan Robotta
              Jun Pataleta Jun Pataleta
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

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