From 7a0bd3f10422836bf37fd0d2bad56b91c2a3058a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 26 Jun 2012 15:36:50 -0400 Subject: [PATCH] kpac : repair Top link Template Toolkit string.replace() does an inline replacement instead of returning a value. Use .replace() correctly when building the Top URL, or the result will be an empty href, which direct to "here" in Firefox/Chrome, but directs to "here, minus the page name in the URL" (e.g. http://domain/eg/kpac/) in IE, which ultimately directs the user to /eg/opac/login (since it doesn't match any configured paths). Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- Open-ILS/src/templates/kpac/parts/paginate.tt2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/kpac/parts/paginate.tt2 b/Open-ILS/src/templates/kpac/parts/paginate.tt2 index c87c9fa643..225b74ebba 100644 --- a/Open-ILS/src/templates/kpac/parts/paginate.tt2 +++ b/Open-ILS/src/templates/kpac/parts/paginate.tt2 @@ -43,8 +43,10 @@ - [% IF showtop; href = mmkurl('').replace('#.*', '') %] - + [% IF showtop %] + + + [% END %] -- 2.43.2