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

URL anchor dropped from wantsurl during login

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-78408-401
    • MDL-78408-master
    • Hide
      1. Log in as the admin user
      2. Create a course using the default topics format
      3. Copy the link to a topic. In master, you can do this when in editing mode, via the activity context menu -> permalink -> copy to clipboard. For other version of Moodle, you can find this in the course index (right click a topic and click "Copy link location". You should end up with something like "http://localhost/s400/course/view.php?id=2#section-2" copied to your clipboard.
      4. Log out.
      5. Paste the link you copied above into the URL and hit enter. This will take you to the login page. You'll see the anchor at the end of the URL - this is fine, it's as per the behaviour in 3.11.
      6. Log in as the admin user
      7. Verify you're redirected to the course view and that you see the anchor in the URL. I.e. the URL contains the '#section-2'
      Show
      Log in as the admin user Create a course using the default topics format Copy the link to a topic. In master, you can do this when in editing mode, via the activity context menu -> permalink -> copy to clipboard. For other version of Moodle, you can find this in the course index (right click a topic and click "Copy link location". You should end up with something like "http://localhost/s400/course/view.php?id=2#section-2" copied to your clipboard. Log out. Paste the link you copied above into the URL and hit enter. This will take you to the login page. You'll see the anchor at the end of the URL - this is fine, it's as per the behaviour in 3.11. Log in as the admin user Verify you're redirected to the course view and that you see the anchor in the URL. I.e. the URL contains the '#section-2'
    • 1

      1. Publish course with sections
      2. Copy url to a section in the course. It will be similar to https://fqdn/course/view.php?id=1#section-1
      3. When not signed in to Moodle, paste the url into the address bar and go
      4. You'll be taken to a login page with the hash property intact. e.g., https://fqdn/login/index.php#section-1 or https://fqdn/auth/ldap/ntlmsso_attempt.php#section-1
      5. After signing in, you'll be taken back to the course, but the hash property has been dropped. e.g., https://fqdn/course/view.php?id=167

      Expected outcome is that step 5 retains the hash property and you're taken to the appropriate section after signing in.

      note - If you attempt the above when already signed in, that hash is kept and you'll be taken to the appropriate section.

            jaked Jake Dallimore
            giskarddaneel Giskard Daneel
            David Woloszyn David Woloszyn
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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