Merge pull request #414 from rainbowpigeon/rainbowpigeon-undef-ahref-patch-2
Fix 'undefined' href in search results without highlight
This commit is contained in:
commit
577a38dd6d
|
@ -722,7 +722,7 @@
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.innerHTML = obj.item.title;
|
a.innerHTML = obj.item.title;
|
||||||
a.setAttribute('class', 'search-result__item--title');
|
a.setAttribute('class', 'search-result__item--title');
|
||||||
a.setAttribute('href', obj.item.permalink);
|
a.setAttribute('href', obj.item.uri);
|
||||||
|
|
||||||
var descDiv = document.createElement('div');
|
var descDiv = document.createElement('div');
|
||||||
descDiv.setAttribute('class', 'search-result__item--desc');
|
descDiv.setAttribute('class', 'search-result__item--desc');
|
||||||
|
|
Loading…
Reference in New Issue