[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:
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