router icon indicating copy to clipboard operation
router copied to clipboard

[Start] Pages with non-Latin characters in the route path are not rendered in TanStack Start

Open Mrahmani71 opened this issue 1 year ago • 2 comments

Which project does this relate to?

Start

Describe the bug

I’m building a project in Persian, which is a non-English language that uses a non-Latin alphabet. Today I noticed that pages with non-Latin characters in their route paths — like the example below:

import { createFileRoute } from '@tanstack/react-router'

export const Route = createFileRoute('/تست')({
  component: RouteComponent,
})

function RouteComponent() {
  return <div>Hello "/تست"!</div>
}

are not being rendered.

And in the browser console, only this code/message is shown:

<html><head></head><body></body></html>

Your Example Website or App

https://github.com/Mrahmani71/test-tanstack-start

Steps to Reproduce the Bug or Issue

After installing the packages and running the project, go to the following link — you’ll see that the page doesn’t render.

http://localhost:3000/%D8%AA%D8%B3%D8%AA

Expected behavior

I expected this page to render just like other pages with Latin characters and display its content correctly.

Screenshots or Videos

No response

Platform

  • Start Version: 1.125.6
  • OS: Windows
  • Browser: Brave
  • Browser Version: 1.80.120 / Chromium: 138.0.7204.101
  • Bundler: Vite
  • Bundler Version: 6.3.5

Additional context

I didn’t have this issue with tanstack-router — the page was displayed correctly.

Mrahmani71 avatar Jul 09 '25 20:07 Mrahmani71

I can confirm this seems to be an issue. I am unsure how to solve

brenelz avatar Jul 10 '25 00:07 brenelz

I'll take care of the issue and resolve it!

hyungwookchoi avatar Jul 10 '25 01:07 hyungwookchoi