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

Incorrect URLs in the user menu for messages and calendar

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide

      Setup - Prior to change

      1. Install a 3.11 site
      2. Log in as admin
      3. Navigate to Appearance > Themes > Theme settings in site administration
      4. Set User menu items to the following:

        messages,message|/message/index.php|t/message
        calendar,core_calendar|/calendar/view.php?view=month|i/calendar
        grades,grades|/grade/report/mygrades.php|t/grades
        privatefiles,moodle|/user/files.php
        

      5. Save changes

      Upgrading from 4.0

      1. After the Setup stage, check out 4.0

        git checkout v4.0.0

      2. Log in as admin
      3. Run upgrade
      4. Switch to issue branch
      5. Run the upgrade again
      6. Navigate to Appearance > Themes > Theme settings in site administration
      7. Confirm User menu items contains the following:

        profile,moodle|/user/profile.php
        messages,message|/message/index.php
        calendar,core_calendar|/calendar/view.php?view=month
        grades,grades|/grade/report/mygrades.php
        privatefiles,moodle|/user/files.php
        reports,core_reportbuilder|/reportbuilder/index.php
        

      8. Open User menu
      9. Confirm Messages link opens user messaging page
      10. Open User menu
      11. Confirm Calendar link opens calendar month view page

      Upgrading directly to the version with the patch applied

      1. Start from the Setup stage again.
      2. Switch to issue branch
      3. Log in as admin
      4. Run upgrade
      5. Navigate to Appearance > Themes > Theme settings in site administration
      6. Confirm User menu items contains the following:

        profile,moodle|/user/profile.php
        messages,message|/message/index.php
        calendar,core_calendar|/calendar/view.php?view=month
        grades,grades|/grade/report/mygrades.php
        privatefiles,moodle|/user/files.php
        reports,core_reportbuilder|/reportbuilder/index.php
        

      7. Open User menu
      8. Confirm Messages link opens user messaging page
      9. Open User menu
      10. Confirm Calendar link opens calendar month view page
      Show
      Setup - Prior to change Install a 3.11 site Log in as admin Navigate to Appearance > Themes > Theme settings in site administration Set User menu items to the following: messages,message|/message/index.php|t/message calendar,core_calendar|/calendar/view.php?view=month|i/calendar grades,grades|/grade/report/mygrades.php|t/grades privatefiles,moodle|/user/files.php Save changes Upgrading from 4.0 After the Setup stage, check out 4.0 git checkout v4.0.0 Log in as admin Run upgrade Switch to issue branch Run the upgrade again Navigate to Appearance > Themes > Theme settings in site administration Confirm User menu items contains the following: profile,moodle|/user/profile.php messages,message|/message/index.php calendar,core_calendar|/calendar/view.php?view=month grades,grades|/grade/report/mygrades.php privatefiles,moodle|/user/files.php reports,core_reportbuilder|/reportbuilder/index.php Open User menu Confirm Messages link opens user messaging page Open User menu Confirm Calendar link opens calendar month view page Upgrading directly to the version with the patch applied Start from the Setup stage again. Switch to issue branch Log in as admin Run upgrade Navigate to Appearance > Themes > Theme settings in site administration Confirm User menu items contains the following: profile,moodle|/user/profile.php messages,message|/message/index.php calendar,core_calendar|/calendar/view.php?view=month grades,grades|/grade/report/mygrades.php privatefiles,moodle|/user/files.php reports,core_reportbuilder|/reportbuilder/index.php Open User menu Confirm Messages link opens user messaging page Open User menu Confirm Calendar link opens calendar month view page

    Description

      Open the URL

      https://sandbox.moodledemo.net/
      

      Log in as a user. Click on your initials in the top right-hand corner.
      1) Select the entry "News". The following URL opens with "404 Not Found" (screenshot moodle_profile_messages_url.png).

      https://sandbox.moodledemo.net/message/index.php%7Cmessage 
      

      2) select the entry "Calendar". The following URL opens and no calendar is displayed (screenshot moodle_profile_calender_url.png).

      https://sandbox.moodledemo.net/calendar/view.php?view=month%7Ci%2Fcalendar
      

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              miotto Mirko Otto
              Simey Lameze Simey Lameze
              Jun Pataleta Jun Pataleta
              Angelia Dela Cruz Angelia Dela Cruz
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours, 47 minutes
                  6h 47m