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

Default home page for users: "user preference" not behaving as expected

    Details

    • Testing Instructions:
      Hide
      1. Log in as an admin
      2. Set defaulthomepage to 'User preference' (Settings > Site administration > Appearance > Navigation)
      3. Login as any user type e.g. 'student' and in the navigation browse to 'Home'.
      4. In settings expand My profile settings and check that there is a `Make this my default home page` link. (If not then go to My Home and check the same settings there).
      5. Do not Click this link. We want to leave the default home page to 'My Home'.
      6. Browse to any course.

      [TEST]
      Check that 'My home' is the first item in the navbar and that it links to /my/.

      • Logout and then log back in again as the same student user and check that you are taken to 'my home'.
      • Repeat steps 3 onwards but set the 'Site Home' as the default home page and test again.
      Show
      Log in as an admin Set defaulthomepage to 'User preference' (Settings > Site administration > Appearance > Navigation) Login as any user type e.g. 'student' and in the navigation browse to 'Home'. In settings expand My profile settings and check that there is a `Make this my default home page` link. (If not then go to My Home and check the same settings there). Do not Click this link. We want to leave the default home page to 'My Home'. Browse to any course. [TEST] Check that 'My home' is the first item in the navbar and that it links to /my/. Logout and then log back in again as the same student user and check that you are taken to 'my home'. Repeat steps 3 onwards but set the 'Site Home' as the default home page and test again.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-32108-master

      Description

      Default home page 'user preference' has no effect on the first page displayed after logging in. The site home is always displayed regardless of which page a user has set as their default homepage.

      1. Log in as an admin
      2. Set defaulthomepage to 'User preference' (Settings > Site administration > Appearance > Navigation)
      3. Login as any user type e.g. 'student' and in the navigation browse to 'My home'
      4. In settings expand My profile settings and check that there is a `Make this my default home page` link
      5. Click that link
      6. Browse to any course
      7. Check that 'My home' is now the first item in the navbar and that it links to /my/
      8. Logout and then log back in again as the same student user and you are taken to 'site home', when the expected landing page would be 'My home' due to the previously set 'user preference'.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Sep/12