How to make LTI global navigation link open in new tab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018
03:40 AM
Hi there,
I have stumbled upon a simple problem. I need to prepare a LTI integration with two links (one from course navigation and second from global navigation) which both open new tab when clicked on (instead of being open in an iframe). In the docs I found that `windowTarget` property should help me, however it only does the trick for course navigation link.
Would anyone know how to make global navigation link also open in new tab please?
My current LTI XML configuration is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<cartridge_basiclti_link xmlns="http://www.imsglobal.org/xsd/imslticc_v1p0" xmlns:blti="http://www.imsglobal.org/xsd/imsbasiclti_v1p0" xmlns:lticm="http://www.imsglobal.org/xsd/imslticm_v1p0" xmlns:lticp="http://www.imsglobal.org/xsd/imslticp_v1p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imslticc_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticc_v1p0.xsd http://www.imsglobal.org/xsd/imsbasiclti_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imsbasiclti_v1p0p1.xsd http://www.imsglobal.org/xsd/imslticm_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticm_v1p0.xsd http://www.imsglobal.org/xsd/imslticp_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticp_v1p0.xsd">
<blti:title>My Humble App</blti:title>
<blti:description>Which doesnt do much.</blti:description>
<blti:launch_url>https://app.org/api/v2/blti</blti:launch_url>
<blti:extensions platform="canvas.instructure.com">
<lticm:options name="course_navigation">
<lticm:property name="canvas_icon_class">icon-lti</lticm:property>
<lticm:property name="icon_url">https://app.org/api/v2/blti/icon.svg?course_navigation</lticm:property>
<lticm:property name="text">Humble App</lticm:property>
<lticm:property name="url">https://app.org/api/v2/blti</lticm:property>
<lticm:property name="windowTarget">_blank</lticm:property>
</lticm:options>
<lticm:property name="domain">https://app.org/</lticm:property>
<lticm:options name="global_navigation">
<lticm:property name="canvas_icon_class">icon-lti</lticm:property>
<lticm:property name="icon_url">https://app.org/api/v2/blti/icon.svg?global_navigation</lticm:property>
<lticm:property name="text">Humble App</lticm:property>
<lticm:property name="url">https://app.org/api/v2/blti</lticm:property>
<lticm:property name="windowTarget">_blank</lticm:property>
</lticm:options>
<lticm:property name="icon_url">https://app.org/api/v2/blti/icon.svg</lticm:property>
<lticm:property name="privacy_level">public</lticm:property>
<lticm:property name="selection_height">500</lticm:property>
<lticm:property name="selection_width">500</lticm:property>
<lticm:property name="text">Humble App</lticm:property>
</blti:extensions>
</cartridge_basiclti_link>
Any suggestions would be very much welcome.
Thank you.