To recreate: 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. The '+' needs to be encoded.
Created attachment 136303 [details] [review] 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.
Created attachment 136311 [details] [review] 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. Signed-off-by: David Nind <david@davidnind.com>
Testing notes (using koha-testing-docker): - This patch is only for the OPAC, clicking on the tag in the staff interface (from the record details page) returns no results. The tag is not shown in the search results or lists in the staff interface).
Created attachment 136313 [details] [review] 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. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 136314 [details] [review] Bug 30989: (QA follow-up) Use uri filter on staff detail page This applies the same fix as the first patch but to the staff interface detail page. With this fix, a tag like +++ can be clicked and the tagged records will show. To test: - Tag some records in the staff interface with something like +++ - Go to the detail page of one of those recods - Click on the tag - Verify nothing is found - Apply patch - Repeat - all tagged records will show Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Thanks Katrin for the follow-up so that this works in the staff interface! I think this also needs to work from the tag cloud page in the OPAC.
Created attachment 136317 [details] [review] Bug 30989:(QA follow-up) Use uri filter on OPAC tag cloud page This fixes 2 links on the page: * The tag within the 'all tags' cloud * The tag shown in the 'your tags' table Test plan as before: Test with a tag like +++
Pushed to master for 22.11. Nice work everyone, thanks!
Backported to 22.05.x for 22.05.03
backported to 21.11.x for 21.11.11, thx!
Not backported to oldoldstable (21.05.x). Feel free to ask if it's needed. Nothing to document, marking resolved.