Skip to content

Commit

Permalink
fix: creating a new scheme opens in a new tab [WTEL-4773]
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirBeria committed Jul 23, 2024
1 parent d0488a2 commit 34e4eae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,15 @@ export default {
value: false,
});
}
this.$router.push({
const route = this.$router.resolve({
name: `${RouteNames.FLOW}-new`,
query: {
editor: this.selected.value,
type: this.type.value,
},
});
window.open(route.href, '_blank');
this.close();
},
close() {
this.$emit('close');
Expand Down

0 comments on commit 34e4eae

Please sign in to comment.