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

Duplicate Page Name in Breadcrumbs for Page Set to Use Popup

XMLWordPrintable

    • MOODLE_21_STABLE, MOODLE_23_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • wip-MDL-32393-m23
    • Hide
      1. Enable the popup display option for the page module.
      2. Create a new page activity with the display option set to popup.
      3. Click Save and display
      4. Check that the navigation bar only shows the activity name once.
      5. Browse to the course and click on the page link in the main content.
      6. Ensure you get a popup.
      Show
      Enable the popup display option for the page module. Create a new page activity with the display option set to popup. Click Save and display Check that the navigation bar only shows the activity name once. Browse to the course and click on the page link in the main content. Ensure you get a popup.

      When a Page resource is set to open in a popup window and you either edit that resource or click it from the Recent Activity block, the breadcrumbs on the resulting page list the page name twice. For example, if the page name is "Page" the breadcrumb entry for the page shows up as "PagePage". I have reproduced this in 2.1.3 and the latest 2.3. See attached screenshot from the latest 2.3, where it also includes an icon in between the double names. My 2.1.3 does not have the icon but it is using a custom theme whereas my 2.3 is not.

      Steps to reproduce:

      • Create a new Page in a course and set the page options to display in a popup. Save.
      • Click the edit icon next to the page name or click the page name in the Recent Activity block.
      • Notice the double name in the breadcrumbs.

      It does not double the page name when the page display is set to "Open" rather than "In a popup."

      The line of code that is duplicating the name is in render_navigation_node() within lib/outputrenderers.php, line 2514 in the current 2.3:

      2514             $link->text = $content.$link->text; // add help icon

      $content already has the name and then the name is appended to it, duplicating it. I don't know this part of code well enough to know if the function itself is wrong or if what's being fed into the function is wrong.

            samhemelryk Sam Hemelryk
            cfollin Chris Follin
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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