From 34e4eae817cf990740914fcaad660ce3e2cd981b Mon Sep 17 00:00:00 2001 From: volodymyr Date: Tue, 23 Jul 2024 11:48:20 +0300 Subject: [PATCH] fix: creating a new scheme opens in a new tab [WTEL-4773] --- .../routing/modules/flow/components/create-flow-popup.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/routing/modules/flow/components/create-flow-popup.vue b/src/modules/routing/modules/flow/components/create-flow-popup.vue index b56bb37ba..e596ce2f6 100644 --- a/src/modules/routing/modules/flow/components/create-flow-popup.vue +++ b/src/modules/routing/modules/flow/components/create-flow-popup.vue @@ -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');