Cyrillic characters in path

This issue has been tracked since 2020-10-27.

Hello!
Routing with Cyrillic characters in the path does not work.
For example: example.ru/пример-страницы

<Router {url}>
    <nav>
        <NavLink to="/пример-страницы">
            Пример страницы
        </NavLink>
    </nav>
    <Route path="/пример-страницы" component={Example} />
</Router>

Can you please tell me if this can be fixed?

EmilTholin wrote this answer on 2020-12-31

Hi @kyuru!

That's unfortunate. I can't say exactly why this is, but I will look into it and get back to you on if it can be solved or not.

Gullesnuffs wrote this answer on 2021-11-17

I realize this issue is old but I just encountered the same problem and figured I would write about the workaround I used.

To make it work, you need to escape the Cyrillic characters. For example, instead of <Route path="/п" component={Example} /> you'd write <Route path="/%D0%BF" component={Example} />.

More Details About Repo
Owner Name EmilTholin
Repo Name svelte-routing
Full Name EmilTholin/svelte-routing
Language JavaScript
Created Date 2017-11-28
Updated Date 2022-12-03
Star Count 1711
Watcher Count 21
Fork Count 151
Issue Count 59

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date