From 3bda8f4e86fd4ed133b2ce35050b068f6c0e3068 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 4 Jun 2025 10:25:33 +0100 Subject: [PATCH] Bug 40067: Prevent receive shipments opening in a new tab Test plan: 1) Navigate to a vendor record 2) Click the Receive shipments button 3) It will open in a new tab 4) Apply patch - yarn js:build 5) Hard refresh the browser 6) Repeat steps 1 - 2 7) The page will open in the same tab Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/js/vue/components/Link.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Link.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Link.vue index f835de866ac..36d136cdda5 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Link.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Link.vue @@ -42,7 +42,7 @@ export default { window.location.href = this.formatUrl(redirectParams); if (typeof redirectParams === "object") { const url = this.handleQuery(redirectParams); - window.open(this.formatUrl(url), "_blank"); + window.location.href = this.formatUrl(url); } }, formatUrl(url) { -- 2.34.1