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:
parent
8215156088
commit
2db7eb95c3
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue