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

Question category editing links broken when site installed outside webroot

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide

      Pre-requisites

      1. A site installed outside the webroot, e.g. http://example.com/moodle

      Test

      1. Login as admin
      2. Create a new course
      3. Select More > Question bank from secondary navigation
      4. Select Categories from tertiary navigation
      5. Press any of the Default for <category> links (e.g. for course, category, system)
      6. Confirm they load the question bank for each category
      Show
      Pre-requisites A site installed outside the webroot, e.g. http://example.com/moodle Test Login as admin Create a new course Select More > Question bank from secondary navigation Select Categories from tertiary navigation Press any of the Default for <category> links (e.g. for course, category, system) Confirm they load the question bank for each category

      For example, my own dev site has the following:

      $CFG->wwwroot   = 'http://moodle.internal/master';
      

      See the following screenshot, clicking the Miscellaneous category leads to an incorrect URL

      http://moodle.internal/master/master/question/edit.php?courseid=2&cat=4%2C3
      

      Note the path is duplicated, leads to a 404

            pholden Paul Holden
            pholden Paul Holden
            Simey Lameze Simey Lameze
            Jake Dallimore Jake Dallimore
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 55 minutes
                1h 55m

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