Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyrillic characters in path #167

Open
kyuru opened this issue Oct 27, 2020 · 2 comments
Open

Cyrillic characters in path #167

kyuru opened this issue Oct 27, 2020 · 2 comments

Comments

@kyuru
Copy link

kyuru commented Oct 27, 2020

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
Copy link
Owner

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
Copy link

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} />.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants