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

Books navigation omits the section-id from URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • 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. 1.png
          69 kB
          Sagar Ghimire
        2. 2.png
          62 kB
          Sagar Ghimire
        3. 3.png
          8 kB
          Sagar Ghimire
        4. breadcrumb.png
          61 kB
          Adrian Greeve
        5. course_page.png
          46 kB
          Sagar Ghimire
        6. course-main.png
          24 kB
          Sagar Ghimire
        7. section_page.png
          30 kB
          Sagar Ghimire
        8. sections.png
          22 kB
          Sagar Ghimire

          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:

                Time Tracking

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