0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 04:02:30 +08:00
discourse/app/helpers
Rafael dos Santos Silva 7ce032bd12
FIX: Apply embed class_name to <html> in full app mode (#40344)
Previously, the `className` passed via `DiscourseEmbed` was applied to
the iframe document's `<html>` element in classic embed mode but
silently ignored in full app mode — the param was dropped during the
`/embed/comments` redirect and the full app's layout never applied it.

This change forwards `class_name` through the redirect and applies it to
`html_classes` when embed mode is allowed, validated against
`/\A[a-zA-Z0-9\-_ ]+\z/` to prevent attribute injection, matching
classic embed behaviour.
2026-05-27 17:31:03 -03:00
..
application_helper.rb FIX: Apply embed class_name to <html> in full app mode (#40344) 2026-05-27 17:31:03 -03:00
common_helper.rb FIX: Skip third-party analytics tags in full app embed iframes (#39534) 2026-04-24 14:58:45 -03:00
email_helper.rb UX: add preview to email templates (#36657) 2026-01-08 11:33:53 +04:00
embed_helper.rb DEV: Enable Style/RedundantParentheses rubocop rule (#40095) 2026-05-19 15:48:09 +02:00
emoji_helper.rb FEATURE: Render emojis on GitHub labels when oneboxing an issue. (#13531) 2021-06-25 14:48:36 -03:00
list_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
posts_helper.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
qunit_helper.rb DEV: Label plugin/theme qunit test output with target name (#39410) 2026-04-21 16:52:52 +01:00
topic_post_bookmarkable_helper.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
topics_helper.rb FEATURE: A dedicated 'show original' user preferences saved to user options (#39128) 2026-04-07 21:37:20 +08:00
user_notifications_helper.rb DEV: Refactors digest/summary email into partials (#33451) 2025-07-07 09:57:15 -05:00