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 <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 052cc1b6ef)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Matt Blenkinsop 2025-06-04 10:25:33 +01:00 committed by Paul Derscheid
parent 8215156088
commit 2db7eb95c3
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 1 deletions

View File

@ -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) {