Make LTI 1.3 launch redirection honor query parameters in the target_link_uri. #2797
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
andurl_for
on thetarget_link_uri
that is given.This just gets the query parameters that are passed in the given
target_link_uri
and then passes them tosystemLink
so that it adds them back to the generated URL that gets redirected to.