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

Question category editing links broken when site installed outside webroot

    XMLWordPrintable

Details

    • Bug
    • Status: Waiting for peer review
    • Minor
    • Resolution: Unresolved
    • 4.0
    • None
    • Questions
    • 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. From course Actions menu choose More...
      4. Press Question bank > Categories
      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 From course Actions menu choose More... Press Question bank > Categories Press any of the Default for <category> links (e.g. for course, category, system) Confirm they load the question bank for each category

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              3 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 - 10 minutes
                  10m