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

Feat: add library page redirects #33723

Conversation

connorhaugh
Copy link
Contributor

Description

https://2u-internal.atlassian.net/browse/TNL-11184

As a library author, navigating to a V1 library URL should bring me to the corresponding V2 lib once V2 libraries are rolled out.

Technical Details:
We’ll want to create a conditional in edx-platform/cms/djangoapps/contentstore/views/library.py’s _display_library view, that checks if we have lib authoring enabled AND V1 Libs are mapped to V2 libs. If that conditional is true, convert the v1 key to a v2 key and return a redirect to LIBRARY_AUTHORING_MICROFRONTEND_URL + '/library' + v2_key_string as a response.

@connorhaugh connorhaugh force-pushed the feat--create-runtime-mapping-for-v1-lib-keys-to-v2 branch from 6de0e25 to 4e5f490 Compare December 8, 2023 15:49
@kdmccormick
Copy link
Member

Closing since we will not be doing a 1-1 mapping between v1 and v2 libraries.

@kdmccormick kdmccormick deleted the feat--add-library-page-redirects branch May 15, 2024 19:30
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.

2 participants