forem.dev Community

loading...
Forem Core Team

Discuss: Non-ASCII title makes a weird URL on Forem/dev.to

coffeecraftcode profile image Christina Gorton ・1 min read

Forem/dev.to has non-English speaking users, and they may write articles. They are expected to have an article which has a non-ASCII title. But, Forem/dev.to makes a weird URL with no slug if a title consists of non-ASCII characters.

You can read more about a proposed solution and 2 more related issues in the GitHub issue below.

Non-ASCII title makes a weird URL on Forem/dev.to #12350

Forem/dev.to has non-English speaking users, and they may write articles. They are expected to have an article which has a non-ASCII title. But, Forem/dev.to makes a weird URL with no slug if a title consists of non-ASCII characters.

The following article is a good example : https://dev.to/chokri/-eg9

(This issue is a reorganization of #6942 to describe a problem here, and to propose solutions in other issues #12351 and #12352.)

To Reproduce

  1. Start "Write a post" from dev.to
  2. Fill its title: with non-ASCII characters (e.g. テスト記事)
  3. Mark published: to true
  4. Save changes
  5. See the URL consists of only a random alphanumeric string (e.g. /user/-eg9)

Expected behavior

The article should have a meaningful URL with a meaningful slug.

Screenshots

The example article below (same as above) describes the issue well, instead of screenshots. https://dev.to/chokri/-eg9

Discussion (1)

pic
Editor guide
Collapse
coffeecraftcode profile image