Skip to content

feat: let external routes override app routes for a role - #352

Open
arbrandes wants to merge 1 commit into
openedx:mainfrom
arbrandes:arbrandes/external-route-override
Open

arbrandes wants to merge 1 commit into
openedx:mainfrom
arbrandes:arbrandes/external-route-override

Conversation

@arbrandes

@arbrandes arbrandes commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Description

A site's externalRoutes now take precedence over the routes of installed apps when both provide the same role, so an operator can point a role an app declares to a destination of their own. Until now such an entry was dead config: the app always won.

External URLs can also carry route params: resolveRouteByRole() fills any :name token that matches a given param, URL-encoded, so an override for something like org.openedx.frontend.role.courseDates can include the courseId.

Closes #348. Closes #349.

LLM usage notice

Built with assistance from Claude.

A site can now point a route role an installed app declares to a
destination of its own, including one that takes route params.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

External routes ignore params A site cannot override an installed app's route for a role with an external route

1 participant