odoo/odoo#193476
Created by fw-bot
Merged
at 688cab519ce85db16329478722a7677f1805f7c2
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-17.4-16.0-fix-dynamic-snippets-in-search-results-bvr-40pa-fw
- head
- eb953d64d64689add70b0d299f25caa9ddcd757e
- merged
- 10 months ago by Website, Serge Bayet (seba)
| odoo/odoo | |
|---|---|
| 16.0 | #192029 |
| 17.0 | #193449 |
| saas-17.2 | #193468 |
| saas-17.4 | #193476 |
| 18.0 | #193512 |
| saas-18.1 | #193527 |
| saas-18.2 | |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| master | #193541 |
[FW][FIX] website: exclude technical content from search results
Steps to reproduce:
- Enter website edit mode.
- Drag and drop a "Products" dynamic snippet onto the page.
- Drag and drop a "Search" snippet onto the page.
- Save the page.
- Perform a search for "dynamic" using the search input.
- Bug: The dynamic snippet alert message appears in the results.
The same issue occurs with the "Embed code" snippet, where text inside "<script>" elements appears in search results.
With this commit, elements like "css_non_editable_mode_hidden" and "<script>" are excluded from search results.
Forward-Port-Of: #192029