Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-7774

Books navigation omits the section-id from URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.5.6
    • Fix Version/s: None
    • Component/s: Course format: Topcoll
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      When loading a Book from a custom link, the section-id is not passed as a URL parameter.

       

      Steps to Recreate:

      1. Create a course with Topics Format and 3 or 4 sections.
      2. Add book activity to a section.
      3. Ensure that the book have at least two chapters.
      4. Create a URL activity in the general section.
        • Use the link to the section id as the link input for URL Activity.
        • E.g site/course/view.php?id=4&section=1
      5. Navigate back to the course and turn editing off.
      6. Click on the link to the section.
      7. Click on the book, we can see section id being passed as parameter.
      8. Navigate through book. The section id is omitted.

       

      If the section-id would have passed then the link for section in breadcrumb would lead to the section page as opposed to pointing the section tab in course page.

       

      ie. we get view.php?id=4#section-1 instead of view.php?id=4&section=1

        Attachments

        1. sections.png
          sections.png
          22 kB
        2. section_page.png
          section_page.png
          30 kB
        3. course-main.png
          course-main.png
          24 kB
        4. course_page.png
          course_page.png
          46 kB
        5. breadcrumb.png
          breadcrumb.png
          61 kB
        6. 3.png
          3.png
          8 kB
        7. 2.png
          2.png
          62 kB
        8. 1.png
          1.png
          69 kB

          Activity

            People

            Assignee:
            gb2048 Gareth J Barnard
            Reporter:
            gmrsagar Sagar Ghimire
            Participants:
            Component watchers:
            Gareth J Barnard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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