Gatsby: [gatsby] CJK characters in pathname stop working since 2.13.2

Created on 8 Jul 2019  路  6Comments  路  Source: gatsbyjs/gatsby

Description

Hi folks, since [email protected], paths with CJK (Chinese, Japanese, Korean) characters no longer works( i.e/鞎堧厱/).

On Firefox, Gatsby renders an absolutely empty page, with no error displayed.
On Chrome, the correct page flashes up, but then becomes empty like in firefox.
This previously works with [email protected].

This happens on both gatsby develop & gatsby build. I've included a reproduction repo below.

Steps to reproduce

Use CJK characters in a pathname. For a quick reproduction, clone gatsby blog starter & rename one of the markdown folder to include CJK characters.

Expected result

Actual result

confirmed bug

All 6 comments

After trying out a bunch of different Gatsby version, it looks like #13197 might contains the cause.

cc @pieh

Thanks for reproduction. Taking a look

Ok, this is related to https://github.com/reach/router/issues/206

Seems like workaround proposed in https://github.com/reach/router/issues/206#issuecomment-441284842 fix the issue - so I will add that to gatsby router

Opened pull request with fix - https://github.com/gatsbyjs/gatsby/pull/15552

Published [email protected] - it fixed issue in reproduction in my tests, but please let us know if that's not actually the case.

Thanks @pieh for the quick fix, it now works on all of my paths!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Oppenheimer1 picture Oppenheimer1  路  3Comments

3CordGuy picture 3CordGuy  路  3Comments

timbrandin picture timbrandin  路  3Comments

KyleAMathews picture KyleAMathews  路  3Comments

theduke picture theduke  路  3Comments