Skip to content

Lesson progress counter resets per module instead of showing cumulative count across course #10126

Description

@fhraj-0

What is the URL where the issue is happening

https://roadmap.sh/ai/library/courses

What browsers are you seeing the problem on?

No response

Describe the Bug

Bug:

Course progress indicator (e.g. "X/Y lessons") shows incorrect cumulative count when navigating between modules.
Steps to reproduce:

Open a course with multiple modules (example: course with 7 modules, 35 total lessons)
Go to Module 1, Lesson 4 → progress shows 4/35 ✅ (correct)
Move to Module 2, Lesson 1 → progress shows 1/35 ❌ (incorrect)

Expected behavior:

Progress should show cumulative lesson count across all modules. If Module 1 has 7 lessons, then Module 2, Lesson 1 should show 8/35, not 1/35.
Actual behavior:
Counter resets to per-module lesson number instead of continuing the cumulative count.
Additional context:

Total modules: 7
Total lessons: 35
Module 1 has 7 lessons (confirmed 4/35 shown correctly at lesson 4)
Bug appears when crossing into next module

Output from browser console (if any)

No response

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behavior

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions