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

Add support for a custom "resource" query parameter in the LTI activity launch

XMLWordPrintable

    • MOODLE_405_STABLE

      Add support for a custom "resource" query parameter in the LTI activity launch

      Description:

      Currently, the LTI activity module in Moodle does not allow passing an additional query parameter (named “resource”) from the URL (e.g.,

      /mod/lti/view.php?id=...&resource=...

      ) to the LTI launch request. This feature request proposes adding support for such a query parameter so that it can be captured on the LTI activity view page and then forwarded to the LTI tool along with the other custom parameters.

      Rationale:

      • This feature would allow instructors to specify a file/resource reference via a query parameter, which the LTI tool can then use to manage user access or customize the tool’s behavior (for example, by retrieving the resource from Moodle through the API and displaying it within the LTI tool).
      • It offers greater flexibility for integrations where dynamic resource identification is required without modifying the core plugin logic.
      • Enabling this feature would benefit Moodle sites that require additional contextual data to be transmitted to external LTI tools.

      Proposed Implementation:

      1. Modify /mod/lti/view.php to capture an additional query parameter (e.g., resource) when present.
      2. Extend the logic in the LTI parameter assembly (used before the LTI tool launch) to include the captured resource parameter as a custom parameter, for example:

        resource=<value>

      3. (Optional) Add a configuration setting to enable or disable forwarding of this parameter for additional security and flexibility.

      Additional Notes:

      • The feature should maintain backward compatibility and only activate when the resource query parameter is present.
      • This enhancement will provide a cleaner integration path for use cases that require dynamic resource identification in LTI tool launches.

            Unassigned Unassigned
            jorgagu Jordan Labrosse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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