No Code Attached Yet bug
avatar pl71
pl71
4 Oct 2022

Steps to reproduce the issue

Site with module Smart search published. Indexed.
Publish Article "Foo" with text "Foo bar foobarfoo".
Smart Search for the same text: "Foo bar foobarfoo"
foo

Expected result

"Foo bar foobarfoo" to be highlighted, as in other popular search engines - with changed text colors only .

Actual result

"Foo bar foobarfoo" is highlighted, but with added spaces between words as in the following screenshot:

foo bar

Devtools for the second word bar (EDIT: 'bar' inside 'foobarfoo'):

<mark data-markjs="true">
    <mark data-markjs="true">
        <mark data-markjs="true">
            <mark data-markjs="true">
                <mark data-markjs="true">
                    <mark data-markjs="true">
                        bar
                    </mark>
                </mark>
            </mark>
        </mark>
    </mark>
</mark>

System information (as much as possible)

Joomla 4.2.3
PHP 8.1

Additional comments

For larger articles text becomes almost unreadable.

avatar pl71 pl71 - open - 4 Oct 2022
avatar joomla-cms-bot joomla-cms-bot - change - 4 Oct 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Oct 2022
avatar pl71
pl71 - comment - 4 Oct 2022

Understood it is a mostly styling issue since the Cassiopeia template has padding which multiplies.

.mark, mark {
	background-color: #fbeea8;
	padding: .2em;
}

I can remove padding-left and padding-right,
But, nested marks remain...

avatar Fedik
Fedik - comment - 4 Oct 2022

Looks like it is a highlighter bug, it should highlight a whole word, and only once, hm

avatar Fedik Fedik - change - 4 Oct 2022
Labels Added: bug
avatar Fedik Fedik - labeled - 4 Oct 2022
avatar pl71 pl71 - change - 4 Oct 2022
The description was changed
avatar pl71 pl71 - edited - 4 Oct 2022
avatar sandewt
sandewt - comment - 5 Oct 2022

I confirm this bug. Highlighted words are broken.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38903.

avatar Fedik Fedik - change - 5 Oct 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-10-05 11:16:05
Closed_By Fedik
avatar Fedik Fedik - close - 5 Oct 2022
avatar Fedik
Fedik - comment - 5 Oct 2022

Please test #38908

Add a Comment

Login with GitHub to post a comment