Bugzilla – Attachment 142205 Details for
Bug 31699
Add a generic way to redirect back to the page you were on at login for modal logins
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31699: Impliment modal context return on opac-detail.
Bug-31699-Impliment-modal-context-return-on-opac-d.patch (text/plain), 1.94 KB, created by
David Nind
on 2022-10-19 19:19:03 UTC
(
hide
)
Description:
Bug 31699: Impliment modal context return on opac-detail.
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-10-19 19:19:03 UTC
Size:
1.94 KB
patch
obsolete
>From ab3bd63ab89dc36dd2173c38cc71be4e16c824ca Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 6 Oct 2022 14:41:19 +0100 >Subject: [PATCH] Bug 31699: Impliment modal context return on opac-detail. > >This patch utilises the generic return option introduced in the previous >patch to prevent lose of context when clicking to login to add a comment >to a biblio. > >Test plan >1/ Test that prior to this patch, upon clicking 'Log in to your account >to post a comment' you are redirected to opac-user.pl and thus loose >your context. >2/ Apply the patch >3/ Confirm that a login using the 'Log in to your account to post a >comment' link now redirect immediatly back the correct record and thus >maintains context. > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 35e32d6eed..79f8573dc1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -880,7 +880,7 @@ > [% END %] > [% ELSE %] > <div id="addcomment"> >- <a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment. >+ <a class="login-link loginModal-trigger" role="button" data-toggle="modal" data-return="true" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment. > </div> > [% END # / IF loggedinusername %] > </div> <!-- / #comments --> >-- >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 31699
:
141420
|
141421
|
142200
|
142201
|
142204
|
142205
|
142733
|
142734
|
143378
|
143463
|
143464
|
143465
|
143468
|
143469
|
143608
|
143643
|
144644
|
144645
|
144646