I want to use an i18n basepath on Routify.
In other words, my URL is like this: www.example.com/about-us/
And I want to change it to this: www.example.com/[CURRENT_LANGUAGE]/about-us/
I've followed the example provided on the official website but it didn't work for me. When I add the /ru/
or /en/
prefix it works. But when I change the URL by clicking href
it removes the prefix but goes to the desired URL. I need to have the prefix in the new URL as well.
I think I need to change my href
s to adopt the new basepath logic. But not sure how to do it. How can I solve this issue? Any help is very much appreciated.
My build info: Svelte, Snowpack, Routify, Svelte-i18n.
GitHub repo: Click here