Skip to content

feat: translate STUDIO_BASE_URL to cmsBaseUrl in getConfig#2

Merged
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:arbrandes/translate-cms-base-url
May 7, 2026
Merged

feat: translate STUDIO_BASE_URL to cmsBaseUrl in getConfig#2
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:arbrandes/translate-cms-base-url

Conversation

@arbrandes

Copy link
Copy Markdown
Contributor

Description

Adds STUDIO_BASE_URL -> cmsBaseUrl to SITE_CONFIG_TRANSLATION_MAP in src/platform/getConfig.ts, mirroring the entry in edx-platform's lms/djangoapps/mfe_config_api/views.py. Legacy MFE callers reading getConfig().STUDIO_BASE_URL now resolve against getSiteConfig().cmsBaseUrl. README's enumerated list of translated keys is updated to match.

The existing test suite covers the translation pattern generically via LMS_BASE_URL and friends, so STUDIO_BASE_URL falls into the same equivalence class without needing a dedicated case.

LLM usage notice

Built with assistance from Claude.

Mirrors edx-platform's SITE_CONFIG_TRANSLATION_MAP entry so legacy
MFE callers reading getConfig().STUDIO_BASE_URL resolve against
getSiteConfig().cmsBaseUrl.

Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes
arbrandes force-pushed the arbrandes/translate-cms-base-url branch from 27e1f25 to ea6fc9f Compare May 6, 2026 23:14
@arbrandes
arbrandes merged commit 37fd1aa into openedx:main May 7, 2026
4 checks passed
@arbrandes
arbrandes deleted the arbrandes/translate-cms-base-url branch May 7, 2026 13:59
@openedx-semantic-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0-alpha.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@openedx-semantic-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants