diff options
author | zzossig <52706977+zzossig@users.noreply.github.com> | 2021-05-23 17:11:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 17:11:22 +0300 |
commit | 577a38dd6d85f1e1e5bd67982b06edae8a7df9c0 (patch) | |
tree | 0c42c31ed9a76fbc8f458a7c9d65a46f71275a84 | |
parent | 36ba93cb5c72e6c22d52f61e05ec627de83c588c (diff) | |
parent | 51eb84391b55c123cc64b3812b620e53fa6d4bbb (diff) |
Merge pull request #414 from rainbowpigeon/rainbowpigeon-undef-ahref-patch-2
Fix 'undefined' href in search results without highlight
-rw-r--r-- | layouts/partials/head/scripts.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head/scripts.html b/layouts/partials/head/scripts.html index 3f0ba08..dba8cde 100644 --- a/layouts/partials/head/scripts.html +++ b/layouts/partials/head/scripts.html @@ -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>
\ No newline at end of file +</script> |