External tool automatically gets started when user is sent to launch_presentation_return_url

External tool automatically gets started when user is sent to launch_presentation_return_url

by Andrey Agibalov -
Number of replies: 1

I have a "single activity" course where the activity is "external tool". When user launches the course, the tool is launched as expected. When the user ends their session, the tool sends user back to Moodle and Moodle automatically launches the activity again. Is there a way to make Moodle stop doing this?

I'm using Moodle 3.9.2.

The tool's "end session" sends the user to launch_presentation_return_url provided by Moodle via LTI launch.

What I see in the Chrome dev tools:

  • https://<Our Moodle>/mod/lti/return.php?course=2&launch_container=5&instanceid=1&sesskey=Lug3Gp814h
  • https://<Our Moodle>/course/view.php?id=2
  • https://<Our Moodle>/mod/lti/view.php?id=1
  • https://<Our Moodle>/mod/lti/launch.php?id=1
  • https://<Our LTI tool>/<LTI launch endpoint>

I've learnt that if I manually go to any of these:

  • https://<Our Moodle>/course/view.php?id=2
  • https://<Our Moodle>/mod/lti/view.php?id=1

I will always end up being sent to the external tool.

Average of ratings: -
In reply to Andrey Agibalov

Re: External tool automatically gets started when user is sent to launch_presentation_return_url

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I guess no-one thought of that particualr set-up before. I think you should create a bug report in the Moodle issue tracker (https://docs.moodle.org/dev/Tracker_introduction) then hopefully this will get fixed.
Average of ratings: Useful (1)