Skip to content

fix: handle opening verticals in new tabs with the "View In Studio"#618

Merged
mariajgrimaldi merged 1 commit intoedunext/limonero.masterfrom
MJG/fix_view_in_studio_tab
Jan 13, 2022
Merged

fix: handle opening verticals in new tabs with the "View In Studio"#618
mariajgrimaldi merged 1 commit intoedunext/limonero.masterfrom
MJG/fix_view_in_studio_tab

Conversation

@mariajgrimaldi
Copy link
Contributor

@mariajgrimaldi mariajgrimaldi commented Jan 13, 2022

Description

Backport that fixes redirecting to Course Outline instead of verticals when using open in new page the button "View In Studio"

Additional information

PR in upstream

How to test

  1. Go to a course unit
  2. Click "View in Studio" -> you should be redirected the course unit edit page
  3. Now, use Open in new tab -> you should be redirected the course unit edit page

…utton

#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.

(cherry picked from commit 01ada0b)
@mariajgrimaldi mariajgrimaldi marked this pull request as ready for review January 13, 2022 20:30
@mariajgrimaldi mariajgrimaldi merged commit 3a1b75a into edunext/limonero.master Jan 13, 2022
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.

5 participants

Comments