We are trying to execute javascript in a trigger which does a redirect of the current page using window.location = '[url]'; We are launching the unit from [current url]/story.html When we run the unit and click on the trigger, instead of redirecting to [url], it is redirecting to [current url]/[url]. Do you know why it would assume the redirect is to a relative path, and how to override this behavior?
It's not something that Storyline is doing since you're using a JS trigger. As Michael mentions, if your sending it to another site, you'll want to use http: / https:
One caution with LMS and e-learning products. It's common behavior for the LMS to close the window if a redirect takes it away from the LMS API. You might see this if you try to redirect a SCO to another location outside of the LMS and the content package.
2 Replies
Hi there Devin,
Just a thought but did you include http:// ?
It's not something that Storyline is doing since you're using a JS trigger. As Michael mentions, if your sending it to another site, you'll want to use http: / https:
One caution with LMS and e-learning products. It's common behavior for the LMS to close the window if a redirect takes it away from the LMS API. You might see this if you try to redirect a SCO to another location outside of the LMS and the content package.
This discussion is closed. You can start a new discussion or contact Articulate Support.