Skip to content

Commit c993c5a

Browse files
arbrandesclaude
andcommitted
chore: register the course external route
Maps the course route role to the learning MFE's course URL pattern so consumers can resolve "the course's main view" through the standard route-role lookup. Also aligns the dev config's existing profile, account, and logout entries with the namespaced role convention used elsewhere in the ecosystem. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f861bc6 commit c993c5a

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

site.config.ci.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ const siteConfig: SiteConfig = {
2020
footerApp,
2121
instructorDashboardApp
2222
],
23+
externalRoutes: [
24+
{
25+
role: 'org.openedx.frontend.role.course',
26+
url: 'http://apps.local.openedx.io/learning/course/:courseId'
27+
},
28+
],
2329
};
2430

2531
export default siteConfig;

site.config.dev.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@ const siteConfig: SiteConfig = {
2222
],
2323
externalRoutes: [
2424
{
25-
role: 'profile',
25+
role: 'org.openedx.frontend.role.profile',
2626
url: 'http://apps.local.openedx.io:1995/profile/'
2727
},
2828
{
29-
role: 'account',
29+
role: 'org.openedx.frontend.role.account',
3030
url: 'http://apps.local.openedx.io:1997/account/'
3131
},
3232
{
33-
role: 'logout',
33+
role: 'org.openedx.frontend.role.course',
34+
url: 'http://apps.local.openedx.io:2000/learning/course/:courseId'
35+
},
36+
{
37+
role: 'org.openedx.frontend.role.logout',
3438
url: 'http://local.openedx.io:8000/logout'
3539
},
3640
],

site.config.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ const siteConfig: SiteConfig = {
1515
appId: 'org.openedx.frontend.app.instructorDashboard',
1616
config: {}
1717
}],
18+
externalRoutes: [
19+
{
20+
role: 'org.openedx.frontend.role.course',
21+
url: 'http://localhost:2000/learning/course/:courseId'
22+
},
23+
],
1824
};
1925

2026
export default siteConfig;

0 commit comments

Comments
 (0)