askorama / orama

🌌 Fast, dependency-free, full-text and vector search engine with typo tolerance, filters, facets, stemming, and more. Works with any JavaScript runtime, browser, server, service!

Home Page:https://docs.askorama.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Vitepress-Plugin] When clicking on the search result it gives error 404

Heus-Sueh opened this issue Β· comments

Describe the bug

Screencast.from.2024-01-10.19-42-26.webm

The expected result was for him to send it to this link:

image

Right URL:
Megathread-V2/pages/jogos.html#πŸ”—-elamigos

Wrong URL:
/pages/jogos.html#elamigosogos.html#elamigos

Orama takes me to the wrong url, and it seems, it doesn't get the entire heading, it ignores the emoji completely and it doesn't respect the base setting that defines the base url

my base is defined as: "/Megathread-v2/"

To Reproduce

define a base in vitepress and put some emoji in the heading along with a space

Expected behavior

When I click on the result it takes me to the right url

Right URL:
Megathread-V2/pages/jogos.html#πŸ”—-elamigos

Environment Info

OS: Linux
Node: v21.5.0
@orama/plugin-vitepress: 2.0.0-beta.12

Affected areas

Search

Additional context

No response

we see the error, let us reproduce and fix this. Thanks for opening this