#557 added highlighting of the search term in search results. This could break the rendering of search results if the term occurs in identifiers (e.g. internal links) instead of normal text.
Steps to reproduce
- Create two information pages. Let x, y be their IDs
- On the first page, create an internal link to the second page like
[Second page](page:y) and publish this change
- Search for the numeric value of ID y
- There is an internal server error, since
y has been replaced by **y**, which cannot be casted to an int