• Selah

    (@tubescreamer)


    Hi,

    I am following the documentation here: https://docs.themeum.com/tutor-lms/developers/redirecting-to-lessons-for-enrolled-courses/

    I navigated to plugins/tutor/templates/dashboard/enrolled-courses.php but I do not see the lines of code that are mentioned in the documentation:
    $custom_url = home_url($post->post_type.'/'.$post->post_name)

    How can I go about making it so that when the user clicks the “Start Learning” or “Continue Learning” button on the course card for their enrolled courses in the dashboard, it redirects to the lesson page instead of the single course page? Better yet, how can I make it so that it redirects to the user’s current stage in the course, if they have started the course already? For example, if they click Continue Learning, and they are on Lesson 4, it should take them to Lesson 4. However, if they are enrolled but haven’t started a lesson yet, when they click “Start Learning” it takes them to the first lesson. Can this be achieved?

    • This topic was modified 2 years, 6 months ago by Selah.
    • This topic was modified 2 years, 6 months ago by Selah.
    • This topic was modified 2 years, 6 months ago by Selah.
    • This topic was modified 2 years, 6 months ago by Selah.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello @tubescreamer

    You do not have to use this code anymore and the code will not work also.

    Go to Tutor > setting and search for Auto redirect to courses you will get the option enable that option.

    Thread Starter Selah

    (@tubescreamer)

    @jobayertuser That setting is totally unrelated to my question.. The setting says “When a user’s WooCommerce order is auto-completed, they will be redirected to enrolled courses.” I want so that when a user clicks on the “Start Lesson” button in Dashboard > Enrolled Courses, it takes them to the lesson page, instead of the single course page. This setting does not do that.

    Thread Starter Selah

    (@tubescreamer)

    @jobayertuser Hey, any updates regarding this issue? ??

    Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello @tubescreamer

    Ohh sorry my bad this functionality not working anymore.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect to lesson page for enrolled course in dashboard – Wrong Documentation’ is closed to new replies.