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

av Andrey Agibalov -
Antall svar: 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.

Gjennomsnittlig vurdering: -