Skip to content

Conversation

drgrice1
Copy link
Member

This is useful if you want to make unpublished instructor links in the LMS that go to specific pages in webwork with query params to make certain display options active immediately. For example, if you use a link such as https://webwork.server.edu/webwork2/instructor/progress/set/setID?returning=1&show_date=1&show_testtime=1&show_problems=1 then the test dates, times, and problems will be shown when the page opens.

Currently URL parameters are dropped. This was not intentional when I implemented this, it is merely a side effect of calling systemlink and url_for on the target_link_uri that is given.

This just gets the query parameters that are passed in the given target_link_uri and then passes them to systemLink so that it adds them back to the generated URL that gets redirected to.

@drgrice1 drgrice1 force-pushed the lti-1.3-redirect-query-params branch 3 times, most recently from 39e49ef to 4c74da1 Compare September 9, 2025 20:34
@drgrice1 drgrice1 force-pushed the lti-1.3-redirect-query-params branch 2 times, most recently from dd3947d to fbc0f26 Compare September 23, 2025 20:26
…link_uri.

This is useful if you want to make unpublished instructor links in the
LMS that go to specific pages in webwork with query params to make
certain display options active immediately.  For example, if you use a
link such as
`https://webwork.server.edu/webwork2/instructor/progress/set/setID?returning=1&show_date=1&show_testtime=1&show_problems=1`
then the test dates, times, and problems will be shown when the page
opens.

Currently URL parameters are dropped.  This was not intentional when I
implemented this, it is merely a side effect of calling `systemlink` and
`url_for` on the `target_link_uri` that is given.

This just gets the query parameters that are passed in the given
`target_link_uri` and then passes them to `systemLink` so that it adds
them back to the generated URL that gets redirected to.
@drgrice1 drgrice1 force-pushed the lti-1.3-redirect-query-params branch from fbc0f26 to 1f57787 Compare September 23, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant