Skip to content

Course Progress URL points to the old progress page #34323

Closed

Description

@FatemeKhodayari

Hi everyone. Recently I found that the course progress URL which is sent in the response of /api/learner_home/init API call, always points to the old progress page and doesn't consider whether the learning MFE is enabled or not.

In the response of the said API call, there's home URL as well which points to the learning MFE all the time and doesn't check whether the user has learning MFE enabled or not. Maybe this is intentional?

A sample response for /api/learner_home/init is as follows:

{
.....
        "courses": [
        {
            "courseRun": {
                "isStarted": true,
                "isArchived": true,
                "courseId": "course-my-sample-course",
                "minPassingGrade": "0.50",
                "startDate": "2023-10-10T12:30:00+03:30",
                "endDate": "2024-01-01T03:00:00+03:30",
                "homeUrl": "https://apps.mylms.com/learning/course/course-my-sample-course/home",
                "marketingUrl": null,
                "progressUrl": "/courses/course-my-sample-course/progress",
                "unenrollUrl": "/course_run/course-my-sample-course/refund_status",
                "upgradeUrl": null,
                "resumeUrl": "/courses/course-my-sample-course/jump_to/block-v1-block-id"
            },
.....

This issue was first raised in this forum topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions