fix: handle opening verticals in new tabs with the "View In Studio" button [BB-4211]#27799
Conversation
|
Thanks for the pull request, @Agrendalath! I've created OSPR-5821 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
b323bf8 to
1ad7889
Compare
|
@Agrendalath Thank you for your contribution. Please let me know once it is ready for our review. |
There was a problem hiding this comment.
@Agrendalath LGTM
👍
- I tested that clicking
View in Studiobutton from a vertical in LMS takes to that vertical in studio page rather than the course outline page. The behaviour is similar for Opening in same tab and forOpen link in new tab. - I read through the code
- I checked for accessibility issues
- Includes documentation
- N/A
I made sure any change in configuration variables is reflected in the corresponding client'sconfiguration-securerepository.
|
@natabene, this is ready for your review. |
|
📣 💥 Heads-up: You must either rebase onto master or merge master into your branch to avoid breaking the build. We recently removed diff-quality and introduced lint-amnesty. This means that the automated quality check that has run on your branch doesn't work the same way it will on master. If you have introduced any quality failures, they might pass on the PR but then break the build on master. This branch has been detected to not have commit 2e33565 as an ancestor. Here's how to see for yourself: If you have any questions, please reach out to the Architecture team (either #edx-shared-architecture on Open edX Slack or #architecture on edX internal). |
…utton openedx#24020 introduced a workaround for viewing the current vertical in Studio However, replacing `window.location.href` on `click` did not support opening it in a new tab.
1ad7889 to
01ada0b
Compare
|
Your PR has finished running tests. There were no failures. |
|
@Agrendalath Thanks for catching/fixing this; I initially wrote it 😊 |
|
@Agrendalath 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
#24020 introduced a workaround for viewing the current vertical in Studio However, replacing
window.location.hrefonclickdid not support opening it in a new tab.Jira
OSPR-5821
Sandbox
https://pr27799.sandbox.opencraft.hosting/
Testing instructions
Deadline
None.
Reviewers