Merge pull request #414 from rainbowpigeon/rainbowpigeon-undef-ahref-patch-2

Fix 'undefined' href in search results without highlight
This commit is contained in:
zzossig 2021-05-23 23:11:22 +09:00 committed by GitHub
commit 577a38dd6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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>