The most common way users reach the Learning Path Homepage (LP HP) is through the catalog page. Each catalog tile includes a View button, which redirects the user to the corresponding Learning Path homepage.To support this behavior, each catalog node(LP) includes a Call to Action (CTA) with the action ID VIEW_LP. This CTA provides all the necessary metadata for redirecting the user to the correct Learning Path.
A Call to Action (CTA) object defines which actions a user can perform on a particular Learning Path. The available CTAs depend on the current learning state for that Learning Path — including enrollment status, completion, scores, or access eligibility.
Below is an example of the getCatalogData query, which returns a list of catalog items along with the CTAs available for each Learning Path based on the current user’s learning state.
Copy
Ask AI
query getCatalogData { getCatalogData(first: 1) { edges { node { cta { actionId title arguments { key value } metadata { key value } } } } }}
Using the information provided by the API, you can build the Learning Path Homepage as demonstrated in our learner area.At this point, all training content will appear locked, as the user has not yet enrolled in the Learning Path. For details on how users can be enrolled, please refer to the Learning Path Enrollment section.