Bugzilla – Attachment 182934 Details for
Bug 40067
"Receive shipments" should not open in a new tab/window
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40067: Prevent receive shipments opening in a new tab
Bug-40067-Prevent-receive-shipments-opening-in-a-n.patch (text/plain), 1.25 KB, created by
Matt Blenkinsop
on 2025-06-04 09:27:01 UTC
(
hide
)
Description:
Bug 40067: Prevent receive shipments opening in a new tab
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2025-06-04 09:27:01 UTC
Size:
1.25 KB
patch
obsolete
>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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40067
:
182934
|
182949
|
182950
|
182951
|
182972
|
182981
|
183000
|
183001
|
183002
|
183003