Skip to content

feat: add CoursewareViewRedirectURL filter#336

Draft
pwnage101 wants to merge 1 commit intoopenedx:mainfrom
pwnage101:pwnage101/ENT-11544
Draft

feat: add CoursewareViewRedirectURL filter#336
pwnage101 wants to merge 1 commit intoopenedx:mainfrom
pwnage101:pwnage101/ENT-11544

Conversation

@pwnage101
Copy link

@pwnage101 pwnage101 commented Mar 5, 2026

Add a new CoursewareViewRedirectURL filter to the learning subdomain. This filter is triggered before courseware views are rendered, allowing pipeline steps to append redirect URLs. The caller redirects to the first URL in the list, or continues normally if the list is empty.

ENT-11544

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com


Blocks:

Add a new CoursewareViewRedirectURL filter to the learning subdomain.
This filter is triggered before courseware views are rendered, allowing
pipeline steps to append redirect URLs. The caller redirects to the
first URL in the list, or continues normally if the list is empty.

ENT-11544

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
filter_type = "org.openedx.learning.courseware.view.redirect_url.requested.v1"

@classmethod
def run_filter(cls, redirect_urls: list, request: Any, course_key: Any) -> tuple:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make return type more explicit. tuple of what?

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.

1 participant