SAP Knowledge Base Article - Public

2776575 - Content keeps looping when loading


When a user launches content, the content keeps loading in a new window and won't play.


SuccessFactors Learning Management System (LMS) - All Supported Versions

Reproducing the Issue

When a user goes to their learning plan and launches content.

The content loads the initial page but keeps looping as per screen shot.

User launches content and sees the following screenshot:

Content Looping.png

When testing in different browsers the issue is the same and continues to loop.


There is a line of code in the content that is incorrect.

Because of the application-based entitlement, query string will be added to the URL so the way you are checking for the file path will not work with entitlement.


What you will need to do is find the following line of code within the content:

var base = location.href.replace(/[^\/\\]*$/,'');

This is the incorrect, you will need to update this with the below:

var base = location.href.replace(/([^\/\\]*\?[^\n]*|[^\/\\]*)$/,'');

See Also

 2316953 - Troubleshooting when Course / Content is not being marked as completed in LMS


Content Launching, Content looping,loop video , KBA , LOD-SF-LMS-CNT , Content , LOD-SF-LMS , Learning Management System , Problem


SAP SuccessFactors Learning all versions