Skip to content

runtimeConfigJsonUrl does not support relative URLs #208

Description

@arbrandes

Description

The runtimeConfig() function in runtime/initialize.js constructs a URL object from runtimeConfigJsonUrl without providing a base URL. This means that if runtimeConfigJsonUrl is set to a relative path (such as /api/config.json, as required by tutor-mfe), the URL constructor throws a TypeError.

Passing window.location.origin as the second argument to the constructor would fix this.

Additionally, the site configs still reference the older mfe_config endpoint rather than the newer frontend_site_config one. These should be updated to match.

Finally, the dev server is hardcoded to listen on apps.local.openedx.io, which is unnecessarily restrictive. Binding to 0.0.0.0 instead would make local development more flexible, especially when serving the frontend from the LMS origin via a relative config URL.

Activity

  1. moved this to In Progress in frontend-baseon Apr 4, 2026
  2. self-assigned this
    on Apr 4, 2026
  3. moved this from In Progress to In Review in frontend-baseon Apr 4, 2026
  4. added theissue type on Apr 6, 2026
  5. moved this from In Review to Done in frontend-baseon Apr 6, 2026
  6. openedx-semantic-release-bot commented on Apr 6, 2026

    @openedx-semantic-release-bot

    🎉 This issue has been resolved in version 1.0.0-alpha.20 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions