openedx / openedx/frontend-app-learning

LmsHtmlFragment.css not found

Open
#1,642 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
70
Forks
335
Avg merge
1d 17h
Merged PRs (30d)
35

Description

https://github.com/openedx/frontend-app-learning/blob/96d20e20e6dda8d08bc45587181055afde9372df/src/course-home/outline-tab/LmsHtmlFragment.jsx#L16-L18

The <base href="${getConfig().LMS_BASE_URL}"> tag causes the file URL to start from the LMS base, while the file is actually served from the MFE base URL. This causes 404 error on the file

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/course-home/outline-tab/LmsHtmlFragment.jsx at lines 16-18 and inspect how the base href affects the file URL. Verify that the affected file is requested from the MFE base URL rather than the LMS base URL, then confirm the 404 no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.