From 95e7ce44db27499aa9282fdf3a891711ab9c61e0 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Tue, 2 Jul 2024 15:24:21 +0000 Subject: [PATCH] Bug 37233: Library URL broken on in libraries tables The URL given for a library is badly encoded in the table on the /cgi-bin/koha/admin/branches.pl page. As a result, clicking on the link leads to 404 page. Test plan: ========== 1. Have a library with a URL defined. 2. In the table on the Libraries page (/cgi-bin/koha/admin/branches.pl) click the link with the URL. You should get "Error 404". 3. Apply the patch; restart_all. 4. Go to the Libraries page. Ctrl+R to reload JS. You should be able to reach the URL given in the library setup now. --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index 37afcd259b..d4bd388f27 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -707,7 +707,7 @@ if ( row.phone != null ) library_info.push(_("Ph: ") + row.phone.escapeHtml()); if ( row.fax != null ) library_info.push(_("Fax: ") + row.fax.escapeHtml()); if ( row.email != null ) library_info.push(''+row.email.escapeHtml()+''); - if ( row.url != null ) library_info.push(''+row.url.escapeHtml()+''); + if ( row.url != null ) library_info.push(''+row.url.escapeHtml()+''); if ( row.notes != null ) library_info.push(_("Notes")+': '+row.notes.escapeHtml()); return library_info.join('
'); }, -- 2.39.2