Bugzilla – Attachment 136303 Details for
Bug 30989
Tags with some special characters are not encoded right
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30989: Use uri filter where tag links are displayed
Bug-30989-Use-uri-filter-where-tag-links-are-displ.patch (text/plain), 4.48 KB, created by
Lucas Gass (lukeg)
on 2022-06-17 19:47:12 UTC
(
hide
)
Description:
Bug 30989: Use uri filter where tag links are displayed
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-06-17 19:47:12 UTC
Size:
4.48 KB
patch
obsolete
>From 9060ccbe0a15f6965cff07afd6c8aebd3748c390 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 17 Jun 2022 19:45:42 +0000 >Subject: [PATCH] Bug 30989: Use uri filter where tag links are displayed > >TO test: >1. Turn on: TagsEnabled. >2. Log in to the OPAC and create a tag like "LGBTQ+" >3. Add that record to a list >3. Now try clicking on that tag from detail, results, and lists page. >4. If you click on the link for the "LGBTQ+" you will get a 'no results found page'. >5. Apply patch >6. Try clicking on each of the tags in detail, results, and lists. They should work now. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >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 a39cd0a0c0..0fd1b8eb1c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -207,7 +207,7 @@ > <span class="label">Tags from this library:</span> > <ul id="tagslist"> > [% FOREACH TagLoo IN TagLoop %] >- <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span> >+ <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term | uri %]&q=[% TagLoo.term | uri %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span> > [% IF ( loop.last ) %][% ELSE %], [% END %] > </li> > [% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index 98106fdcd7..b71ad4ed86 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -470,7 +470,7 @@ > <ul> > [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %] > <li> >- <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term | url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a> >+ <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term | uri %]&q=[% TagLoo.term | uri %]">[% TagLoo.term | html %]</a> > <span class="weight">([% TagLoo.weight_total | html %])</span> > </li> > [% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index 195b817e7a..485714edf0 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -482,7 +482,7 @@ > <span class="label">Tags:</span> > <ul> > [% FOREACH TagLoo IN itemsloo.TagLoop %] >- <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span></li> >+ <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term | uri %]&q=[% TagLoo.term | uri %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span></li> > [% END %] > </ul> > </div> >-- >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 30989
:
136303
|
136311
|
136313
|
136314
|
136317