From c3cf7c52e917a4e8ca9bb3725e14323de83dd240 Mon Sep 17 00:00:00 2001 From: ppoffice Date: Thu, 7 Apr 2016 12:38:21 +0800 Subject: [PATCH] fix: insight search plugin site root issue --- layout/search/insight.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/search/insight.ejs b/layout/search/insight.ejs index aa3f250..3876b5c 100644 --- a/layout/search/insight.ejs +++ b/layout/search/insight.ejs @@ -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':