Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-1795: Location limitation not working #143

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

tischsoic
Copy link
Contributor

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-1795
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Fixes problem with double escaped attribute value (attribute in a template in an attribute)

Fixes proble with double escaped attribute value (attribute in a template in an attribute)
@tischsoic tischsoic self-assigned this Dec 23, 2021

container.insertAdjacentHTML('beforeend', tagTemplate);

const tagTemplateUnescaped = container.innerHTML;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't found a nice fix for the double escape of the attribute in a twig, so I unescape the template here. And only after that I use it.

@@ -1,7 +1,6 @@
<li class="mt-2">
{{ include('@ibexadesign/ui/tag.html.twig', {
'content': content_breadcrumbs,
'location_id': location_id,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was unused

@dew326 dew326 merged commit b2619a5 into main Dec 23, 2021
@dew326 dew326 deleted the IBX-1795-location-limitation-not-working branch December 23, 2021 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants