Skip to content

Commit 2838713

Browse files
committed
Fix search highlighting with multiple words.
1 parent 33d3d9c commit 2838713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/searcher/searcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ window.search = window.search || {};
296296
}
297297

298298
if (url.params.hasOwnProperty(URL_MARK_PARAM)) {
299-
var words = url.params[URL_MARK_PARAM].split(' ');
299+
var words = decodeURIComponent(url.params[URL_MARK_PARAM]).split(' ');
300300
marker.mark(words, {
301301
exclude: mark_exclude
302302
});

0 commit comments

Comments
 (0)