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');
|
||||
a.innerHTML = obj.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');
|
||||
descDiv.setAttribute('class', 'search-result__item--desc');
|
||||
|
@ -1322,4 +1322,4 @@
|
|||
}
|
||||
// ============================================================
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue