Skip to content

insight.js 在 root 为 / 时搜索框不能跳转我改了代码,希望能合入 #53

@wwwrrrrr123

Description

@wwwrrrrr123

case 'PAGES':
$searchItems = array.map(function (item) {
// Use config.root instead of permalink to fix url issue
if (CONFIG.ROOT_URL == "/") {
return searchItem('file', item.title, null, item.text.slice(0, 150), item.path);
}
return searchItem('file', item.title, null, item.text.slice(0, 150), CONFIG.ROOT_URL + item.path);
});
break;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions