From d4709e9ab95eb350e23fb61bbce2a1664f58c364 Mon Sep 17 00:00:00 2001
From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>
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
---
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.48.1