Closed (fixed)
Project:
Taxonomy Views Integrator
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Oct 2014 at 20:27 UTC
Updated:
28 Aug 2020 at 13:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joegl commentedComment #2
duaelfrCould you, please, add steps to reproduce?
https://www.drupal.org/contributor-tasks/add-steps-to-reproduce
Comment #3
joegl commentedCreate a new vocabulary.
Create a term that has an ampersand ("&") in it.
Create a new content type with title and body.
Add the vocabulary as a term reference.
Create a dummy piece of content (or two).
Select the term with the ampersand ("&") in it.
Create a view for the content type.
Create a block display in that view.
Add contextual filter for "Has Taxonomy Term ID".
"When the filter is not available": Provide Default Value: Taxonomy Term ID from URL. Check "Load default filter from term page."
"When the filter is available...": Override Title: %1. Check "Reduce duplicates."
Enable TVI module.
Edit the vocabulary and use TVI to override the display with the view we created.
Load the taxonomy page for the term with the ampersand ("&") in it.
And I believe the actual HTML is:
&(like it's getting escaped twice).Comment #4
drupal_jon commentedI can confirm this happens with similar steps to create. It seems like this is a recurrence of #1817570: Page titles are santitized, double encoding HTML entities (& to &).
I've attached a patch that uses the same approach as the older fix.
Comment #5
capfive commentedJust applied this and it worked :)
Comment #6
kevinquillen commentedComment #8
kevinquillen commentedLooks good. Committed.
Comment #9
kevinquillen commentedComment #10
kevinquillen commentedComment #12
krischanski commentedHave the same problem now with Version 8.x, so the patch is not useable.
Edit: It's not a problem with TVI, by using the standard taxonomy term view, the title is with & too.