Skip to main content

returnUrl support for iOS and Android

This article is explaining how to configure and use returnUrl when opening up a We Are Story in a mobile context.

With returnUrl support, learners using We Are on iOS and Android devices can return to the learning management system (LMS) app or website they came from after finishing a Story. This removes the need to navigate back to the original platform manually, giving learners a smoother and more intuitive journey.

How It Works

When a learner opens a We Are Story from an LMS app, the Story opens in the mobile browser. Once the learner has finished the Story, they are automatically redirected back to the address given in the returnUrl parameter.

Integration Requirements

To enable this, the LMS app must append a return address as a query parameter to the Story link. This parameter specifies where the learner should be redirected after finishing the Story. Use the format below:

Format:
https://play.wearelearning.com/play/StoryID?returnUrl=URL

Example:
https://play.wearelearning.com/play/pqOwdq9?returnUrl=https%3A%2F%2Fyour-lms.com%2Fcourse%2F123

pqOwdq9 = StoryID
?returnUrl = query parameter
https%3A%2F%2Fyour-lms.com%2Fcourse%2F123 = the URL-encoded address of your LMS app or page

If the link already has other query parameters (for example xAPI/cmi5 launch parameters), add &returnUrl=... to the end instead.

Example Workflow:

  1. The learner starts in the LMS app and launches a learning activity.

  2. The LMS app opens the Story link, with the returnUrl query parameter containing the encoded LMS app URL.

  3. The learner plays the Story.

  4. When the Story is finished, the learner is automatically redirected to the specified LMS app URL.

Notes:

  • Ensure the returnUrl is URL-encoded so it can be safely passed as a query parameter, and that it's a full address starting with https://. Values that aren't valid URLs are ignored.

  • Completion tracking is separate from returnUrl. If you also want completions in your LMS, see Integrate We Are with any learning management system.

  • Test the end-to-end redirection to confirm smooth transitions between the LMS app and We Are.

Did this answer your question?