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

"Custom menu items" do not support the "?" query string character along with " target="new

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8
    • Fix Version/s: None
    • Component/s: Libraries, Themes
    • Labels:
    • Affected Branches:
      MOODLE_28_STABLE

      Description

      I am unable to create a "custom menu item" that contains a URL with the "question mark" , meaning the query string character, and forcing a new browser page with the " target="new modifier. For some odd reason, the question mark causes this form of custom menu item to not work.

      Here's an example of what does work:
      #####
      Ricks Homepage|http://www.rjerz.com" target="new

      Here is an example of what does not work:
      #####
      Ricks Moodle Videos|http://www.rjerz.com/v/rjPlayer/rjPlayer.html?crs=moodle2" target="new

      This gets translated by the browser as
      http://www.rjerz.com/v/rjPlayer/rjPlayer.html?crs=moodle2%22%20target%3D%22new

      It appears that the query character messes up the parser, substituting "%'s" instead of interpreting these.

      (see discussions on moodle.org: https://moodle.org/mod/forum/discuss.php?d=277059#p1190910)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rjerz Rick Jerz
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Bas Brands
              Votes:
              10 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: