fix: insight search plugin site root issue

This commit is contained in:
ppoffice 2016-04-07 12:38:21 +08:00
parent 99a47ee8d0
commit c3cf7c52e9
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
sectionTitle = type == 'POSTS' ? '<%= __("insight.posts") %>' : '<%= __("insight.pages") %>';
$searchItems = array.map(function (item) {
// Use config.root instead of permalink to fix url issue
return searchItem('file', item.title, null, item.text.slice(0, 150), <%= config.root %> + item.path);
return searchItem('file', item.title, null, item.text.slice(0, 150), '<%= config.root %>' + item.path);
});
break;
case 'CATEGORIES':