algolia / jekyll-algolia

Add fast and relevant search to your Jekyll site
https://community.algolia.com/jekyll-algolia/
MIT License
214 stars 35 forks source link

Search results links are broken #133

Closed claudiuconstantin closed 5 years ago

claudiuconstantin commented 5 years ago

What is the current behavior?

The links in the search results do not contain the full url, only the relative part. After generating the index records, I observe that the url part of a record might not be correct:

url:/jean-moscopol/ instead of url:https://claudiu.blog/jean-moscopol/

What is your expected behavior?

The links in the search results should be fully functional

Git repository to reproduce the issue:

Ruby version used:

Jekyll version used:

ruby 2.5.5p157 (2019-03-15 revision 67260) [x64-mingw32]

Other notes

I'm using the Minimal Mistakes Jekyll theme. An example of the behavior: https://5d232abe6aaab60007c46223--claudiublog.netlify.com/cautare/

claudiuconstantin commented 5 years ago

Seems that the problem was caused by a baseurl: "/" in my theme's _config.yml. I removed that and now everything works as expected. Many thanks to @mmistakes for pointing this out