odoo/odoo#193512
Created by fw-bot
Merged
at 4b42cf8dec4e09ba557b1f880e951d4a0fd79b69
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:18.0-16.0-fix-dynamic-snippets-in-search-results-bvr-3Pad-fw
- head
- 1f942ad0e3b158d7216da3a5cd8d47db44f8d485
- 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