Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33934 META: Issues with MyMobile theme
  3. MDL-33190

Links with anchors are broken in mobile theme

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.3
    • Fix Version/s: None
    • Component/s: Themes
    • Labels:
    • Affected Branches:
      MOODLE_22_STABLE

      Description

      As the MyMobile theme utilizes jQuery Mobile, it's subjected to the same limitation of jQM where the hash/anchor is used for tracking AJAX and history (or pageID in multipage). Thus, native/traditional use of the anchors no longer works, and even breaks the link as the anchors are interpreted differently by jQM.

      For example, at the summary page of a quiz, there are links with anchors to go back to the questions, but these links are broken. Instead of going to attempt.php?attempt=9#q3, jQM sends an AJAX request to summary.php?attempt=9, preventing users from going back to the questions.

      Maybe the renderer of the theme can intercept these links and add proper attributes so jQM can work with them?

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sillyxone Huy Hoang
            Participants:
            Component watchers:
            Bas Brands
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: