Closed ColderCoder closed 2 years ago
This is a bug in hexo-generator-search. See https://github.com/wzpan/hexo-generator-search/issues/66.
I replace the search.js
by this Ocean-search.js. It worked.
Than you! It does work for me. @probberechts Maybe we should apply this simple fix?
@sirlh's solution only works if your website is hosted at the root (see also #287). While this fixes the problem for some people, it would break the search functionality for others. This really has to be fixed in hexo-generator-search.
This is fixed in hexo-generator-search@2.4.3 :tada:
I'm using
hexo: 5.2.0
withhexo-generator-search@2.4.1
.The search page works fine and I can see results as I type.
But the search function will auto append
search/
after the root path.(e.g.) It should be
localhost:4000/post/something/
while it returnslocalhost:4000/search/post/something/