meilisearch / vuepress-plugin-meilisearch

Add a relevant and typo tolerant search bar to your VuePress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

All links are redirecting to the website root

tpayet opened this issue · comments

Thanks to github-issues-scraper I can send issues and pull requests documents to MeiliSearch. In these documents there is a field called url that we use to redirect the user on the appropriate document in the documentation.

For GitHub issues & pr, the url redirect straight to GitHub, but if I click on the results from the documentation website, I get redirected to the documentation. The host is replaced with the actual documenation host and I end up on a 404.

Here is a GIF that should better explain my problem.

Jun-11-2020 15-45-08

I did not find any configuration regarding this. Let me know if anything is unclear :)

This is not related to docs-searchbar.js but to vuepress-plugin-meilisearch that overwrites the default URL redirection of docs-searchbar.js.
See these lines of code.

Moving this issue to vuepress-plugin-meilisearch.

It was identified as not being an issue: this is the expected default behavior of this plugin, but an issue is open (#22) to let the users custom this behavior if needed!
The temporary solution is to overwrite the MeiliSearchBox.vue component and change the handleSelected value.