Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make public record URLs redirect both ways #108

Closed
Tracked by #107
hurtstotouchfire opened this issue Oct 20, 2022 · 2 comments
Closed
Tracked by #107

Make public record URLs redirect both ways #108

hurtstotouchfire opened this issue Oct 20, 2022 · 2 comments

Comments

@hurtstotouchfire
Copy link
Member

hurtstotouchfire commented Oct 20, 2022

With the Learner Record MFE on track to become a mandatory part of Credentials, replacing the legacy frontend of the records app in the IDA, we must ensure that we continue supporting public program record links that learners have already created and shared.

Anyone who is trying to access a public program record in the old experience must be redirected to the Learner Record MFE.

We are planning on using an application level redirect, taking advantage of Django’s built-in functionality to redirect learners to the MFE. For more information on what influenced this decision, see this Spike doc and read the Link Redirection section.

We are looking to redirect users who hit a public program record at https://credentials.edx.org/records/programs/shared/{shared_program_record_uuid}/ to https://records.edx.org/shared/{shared_program_record_uuid}/.

We may want to re-use the existing view in Credentials to perform the redirect. Currently, both the public and private program records use the same view. We may want to change this going forward to better support deprecation of the old views.

We can toggle this functionality using the USE_LEARNER_RECORD_MFE setting. If enabled, we will redirect/rewrite the link to the Learner Record MFE. If disabled, we will continue to render the program record in Credentials using the legacy FE.

Acceptance Criteria

The Credentials IDA supports redirection of public program record links to the Learner Record MFE.

The redirection functionality can be toggled using an existing setting (USE_LEARNER_RECORD_MFE).

Make any required updates in the Learner Record and Support Tools MFEs.

@hurtstotouchfire
Copy link
Member Author

PRs for this work:
Credentials PR: openedx/credentials#1793
LR MFE PR: #105
Support Tools MFE PR: openedx/frontend-app-support-tools#276

@arbrandes
Copy link

Looks like this is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants