The course bar selects no tab in courseware
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start with CourseTabsNavigation and findActiveTab in frontend-base, then compare their URL matching with the Learning routes and the activeTabSlug behavior described in the issue. The issue leaves open how pages should identify their tab, so first resolve that design question with maintainers. Done when courseware pages, including course exit, consistently select the intended Course tab.
Written by the indexing model from the issue text.
Description
The course bar selects no tab in courseware. On Learning's master, the Course tab is selected there.
Found while porting Learning's courseware container to frontend-base (openedx/frontend-app-learning#2195, part of openedx/frontend-app-learning#1905). Related to #332.
[!NOTE]
The details below were generated by Claude (Claude Code) and reviewed before posting.
Claude Plan
How the course bar picks the selected tab
CourseTabsNavigationmarks as active the tab thatfindActiveTab(resolvedTabs, location.pathname)returns.findActiveTab"Returns the tab whose URL pathname is the longest prefix match againstpathname, or null if none match."- The tabs and their URLs come from the
course_metadataresponse. The Course tab (CoursewareTab, typecourseware) links todefault_course_url, which by default isget_learning_mfe_home_url(course_key, url_fragment='home'): Learning's course home,…/learning/course/<course>/home. - Learning's courseware pages are at
…/learning/course/<course>,…/<sequence>and…/<sequence>/<unit>, with the same under…/learning/preview/course/<course>, and its course exit page is at…/learning/course/<course>/course-end(routes.tsxon Learning'sfrontend-basebranch). None of those addresses is under a tab's URL, sofindActiveTabreturns null and no tab is marked.
What Learning does on master
- Each page names its tab. The courseware container renders its tab page with
activeTabSlug="courseware", and so does the course exit page. isActiveTabmarks the tab whose id equals that slug. The Course tab's id is its type,courseware(xmodule/tabs.py:tab_dict.get('tab_id', getattr(self, 'tab_id', self.type))), so the Course tab is selected on every courseware page. The course home passesoutline, which the same function maps to the Course tab: "Users see one "Course" tab."
How it was seen
- 2026-11-18, on the branch that ports Learning's courseware container (openedx/frontend-app-learning#2195), against Tutor dev: on a unit's page the course bar showed no tab as selected. On the course home, the same course bar shows the Course tab as selected.
- It is the first Learning page on frontend-base whose address is under none of the tabs' URLs; until that port the courseware routes rendered a placeholder.
Questions
- Which tab, if any, should the course bar mark on a course page whose address is under no tab's URL?
- What tells the course bar which tab a page belongs to: the tabs' URLs, something the page's app declares, or the tab data?
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 13
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openedx/frontend-base
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openedx/frontend-base#357 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openedx/frontend-base#355 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openedx/frontend-base#330 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
openedx/frontend-base#327 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openedx/frontend-base#210 ·
Maintainers usually reply within 1 day
All issues in openedx/frontend-base
Similar issues
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPossibly taken @pcbeingused333 claimed this today. OpenBug db: d1-sqlite Payload OSS
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19766 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
device-management-toolkit/sample-web-ui#3711 ·
Maintainers usually reply within 1 day
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
elastic/kibana#306401 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
agentes-chat/agentes-chat#927 ·
Maintainers usually reply within 1 day
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabPossibly taken @seenimohamed claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ardia-browser/ardia#2769 ·
Maintainers usually reply within 1 day