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

'Site home' link redirecting to /my when default home is My Moodle

    Details

    • Testing Instructions:
      Hide
      1. Log in as Admin go to Home ▶ Site administration ▶ Appearance ▶ Navigation
      2. Set "Default Home page for users" to 'My Moodle'
      3. Click the 'My home' link
      4. Check you are presented with http://example/my
      5. Click the 'Site home' link
      6. Check you are presented with http://example/
      7. Log in as Teacher or Student
      8. Click the 'My home' link
      9. Check you are presented with http://example/my
      10. Click the 'Site home' link
      11. Check you are presented with http://example/
      Show
      Log in as Admin go to Home ▶ Site administration ▶ Appearance ▶ Navigation Set "Default Home page for users" to 'My Moodle' Click the 'My home' link Check you are presented with http://example/my Click the 'Site home' link Check you are presented with http://example/ Log in as Teacher or Student Click the 'My home' link Check you are presented with http://example/my Click the 'Site home' link Check you are presented with http://example/
    • Workaround:
      Hide

      Change the Default Home page for users to User preference so users can choose.

      Show
      Change the Default Home page for users to User preference so users can choose.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      wip-MDL-30222-m23

      Description

      It is impossible for students or teachers to visit the 'Site home' page when Default Home page for users is 'My Moodle'.

      Users are directed to My home as expected with this being the preference in the Navigation block and Navigation bar. When users click the 'My home' link (URL: http://example/?redirect=0) it returns to http://example/my' rather than 'http://example/'

      When the Default Home page for users is set to 'Site' or 'User preference' the two links work as expected.
      I've got debugging on to display full developer messages and no error is presented. I cannot test this in demo.moodle.net as it is currently on version Moodle 2.1.1+ (Build: 20110817)

      Replication steps:

      1. Log in as Admin go to Home ▶ Site administration ▶ Appearance ▶ Navigation
      2. Set "Default Home page for users" to 'My Moodle'
      3. Click the 'My home' link - result: you are presented with your http://example/my page as expected
      4. Click the 'Site home' link - result: http://example/ page as expected
      1. Log in as Teacher or Student
      2. Click the 'My home' link - result: you are presented with your http://example/my page as expected
      1. Click the 'Site home' link
        Error: you are returned to http://example/my
        Expected result: you should be returned to http://example/

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  3 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Jan/12