Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LmsHtmlFragment.css not found #1642

Open
angonz opened this issue Mar 20, 2025 · 3 comments
Open

LmsHtmlFragment.css not found #1642

angonz opened this issue Mar 20, 2025 · 3 comments
Labels
bug Report of or fix for something that isn't working as intended

Comments

@angonz
Copy link

angonz commented Mar 20, 2025

<base href="${getConfig().LMS_BASE_URL}" target="_parent">
<link rel="stylesheet" href="/static/${getConfig().LEGACY_THEME_NAME ? `${getConfig().LEGACY_THEME_NAME}/` : ''}css/bootstrap/lms-main.css">
<link rel="stylesheet" type="text/css" href="${getConfig().BASE_URL}/static/LmsHtmlFragment.css">

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

@angonz angonz added the bug Report of or fix for something that isn't working as intended label Mar 20, 2025
@angonz
Copy link
Author

angonz commented Mar 20, 2025

@jciasenza can you please take a look?

@jciasenza
Copy link
Contributor

Yes, I check it

@jciasenza
Copy link
Contributor

fixed in the PR: #1659

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of or fix for something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants