Skip to content

Search does not work if   presents before text #5640

Closed
@rockenren

Description

@rockenren

Describe the Bug

If text line contains   at the beginning (before text), search will not show it in results until   is removed.
If   presents after the text, search will work.

Search index regeneration does not resolve this issue.

I can't say for sure when it broke.

Steps to Reproduce

  1. Create new page or edit existing page
  2. Add   via Edit Source before any text
  3. Try searching this text, search results will not display this page
  4. Remove   via Edit Source before text used above
  5. Search will work as expected, showing page in results

Expected Behaviour

Search should work while ignoring  

We have more than 200+ pages with   in HTML and I can't say for sure how many of it contains   before the text, 'breaking' our search index.

Screenshots or Additional Context

No response

Browser Details

Firefox 139.0.1, Chromium 134.0.6998.102

Exact BookStack Version

v25.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions