You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: remove ENABLE_MKTG_SITE setting and simplify marketing URL resolution
ENABLE_MKTG_SITE was a feature flag that selected between two URL resolution
strategies: MKTG_URLS (external marketing site) vs MKTG_URL_LINK_MAP (local
Django URL reversal). The local-template path is now legacy; all operators
are expected to use MKTG_URLS.
This commit removes the flag and its conditional branches, keeping the
MKTG_URLS-based behaviour unconditionally:
- Drop the setting definition and toggle annotation from openedx/envs/common.py
- Remove the override from lms/envs/devstack.py and both mock.yml files
- Simplify marketing_link() and is_marketing_link_set() in edxmako/shortcuts.py
to always consult MKTG_URLS; drop the MKTG_URL_LINK_MAP fallback branches and
the now-unused NoReverseMatch/reverse/set_custom_attribute/get_current_request_hostname imports
- Update validate_marketing_site_setting() in checks.py to always validate
MKTG_URLS rather than gating validation on ENABLE_MKTG_SITE
- Trim edxmako/tests.py: remove False-path test variants and the MKTG_URL_LINK_MAP
link-reversal test; each remaining test now exercises a single, unconditional code path
Part of #37053
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments