Bugzilla – Attachment 163105 Details for
Bug 36302
Patron search from search bar broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36302: Use replace instead of href
Bug-36302-Use-replace-instead-of-href.patch (text/plain), 1.31 KB, created by
Pedro Amorim
on 2024-03-13 10:32:02 UTC
(
hide
)
Description:
Bug 36302: Use replace instead of href
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-03-13 10:32:02 UTC
Size:
1.31 KB
patch
obsolete
>From 9aa6d68f94e45b88b8b87932344cc1f8abd9589c Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 13 Mar 2024 10:30:39 +0000 >Subject: [PATCH] Bug 36302: Use replace instead of href > >This will change URL but not fiddle with browser history. >Works the same (and as expected) in both Chrome and Firefox >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index 9cabd070387..bbb7da67cb6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -393,7 +393,7 @@ > let url = '[% redirect_url | url %]'.indexOf("?") != -1 > ? '[% redirect_url | url %]&borrowernumber=' + json.data[0].patron_id > : '[% redirect_url | url %]?borrowernumber=' + json.data[0].patron_id; >- document.location.href = url; >+ window.location.replace(url); > return false; > } > first_draw = 0; >-- >2.30.2
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 36302
:
163096
|
163099
|
163105
|
163106
|
163108
|
163109
|
163113
|
163121
|
163122
|
163207
|
163226
|
163487
|
163917
|
163918
|
163974
|
164002
|
164003
|
164004
|
164005