The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
I'm using editor_button placement to embed some text into a Rich Content Editor via LTI Deep Linking.
Is there any way to distinguish LTI Deep Linking requests coming from different RCEs?
Like, I want to know if I get a request from course outcome's RCE VS course discussion's RCE.
Hi @RuslanDauhiala,
As a Canvas admin, I checked out a few RCE deep link launches for tools we have installed in our instance. From what I can see, there is nothing to distinguish which internal Canvas area the user is in. I also took a quick look through available LTI Variable Substitutions for custom launch parameters, but don't see anything there to fit your needs either.
Someone else may have some different or advanced info, but I wanted to at least get you an initial reply for now.
-Chris
Thank you for your response @chriscas! I've done some research before posting my question here and saw that LTI requests look identical 2 RCEs located in different areas (course outcomes and course discussions). I was wondering if I missed something.
Thanks again!
I haven't seen anything either.
On approach to address this is to add a postMessage handler to the Canvas theme that responds to custom messages from the LTI and depending on the Canvas page (eg either by parsing the URL or extracting something out of the content of the page) responds differently. Then when the LTI launches it sends a cross frame message and gets response indicating what type of page the user is currently on. Similar to how the existing Canvas postMessage calls are handles.
This wouldn't be cross platform (eg wouldn't work in Moodle) and is a bit of a hack, but it would probably work (assuming the existing Canvas postMessage handlers don't get in the way of the theme based ones).
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in