Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wwwrrrrr123 opened this issue Apr 9, 2021 · 1 comment

Comments

@wwwrrrrr123
Copy link

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;

@iTimeTraveler
Copy link
Owner

@wwwrrrrr123 辛苦老哥提个PR吧,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants