Conversation
|
Yup. This is a legit error. We probably didn't catch it before because we don't usually put non-blog pages in the Related pages section. I'll test this real quick and get this merged. Thanks for the quick fix @yuvrajsingh0125! |
|
Adding the |
...ect_styleguide/templates/patterns/components/streamfields/cards/related_page_card_block.html
Outdated
Show resolved
Hide resolved
...ect_styleguide/templates/patterns/components/streamfields/cards/related_page_card_block.html
Outdated
Show resolved
Hide resolved
Co-authored-by: Meagen Voss <45881480+vossisboss@users.noreply.github.com>
|
Thanks for testing this and digging deeper. That makes sense since this is a preview card, stripping the tags instead of rendering full rich text seems more appropriate. I'll update the template to apply |
|
@yuvrajsingh0125 I've already applied the suggestions from @vossisboss |
|
This all looks good to me and looks good on staging. I'm going to merge this now. |
|
Thanks for the review and for applying the refinements, I really appreciate the feedback! |
* Fix rich text rendering in related page card block using richtext filter * Fix typo in richtext filter * Apply suggestions from code review Co-authored-by: Meagen Voss <45881480+vossisboss@users.noreply.github.com> --------- Co-authored-by: Dan Braghiș <31622+zerolab@users.noreply.github.com> Co-authored-by: Meagen Voss <45881480+vossisboss@users.noreply.github.com>


Fixes #600
The
introfield (RichTextField) was being rendered directly in the template, which caused raw HTML to appear instead of properly formatted content.This update applies the
|richtextfilter to ensure correct and safe HTML rendering, following Wagtail's standard rendering practices.