Skip to content

Special character in URL (ex: ê) with a <Link /> component for the same URL causes a SSR error #5008

@olivier-deschenes

Description

@olivier-deschenes

Which project does this relate to?

Start

Describe the bug

When you reload a route with a param and the param has a special character like ê, the link component in the route component seems to bug when SSR is activated.

I assume that it is because the special character is encoded/decoded at a different time in the server / client (one is encoded and the other not).

Your Example Website or App

https://github.com/olivier-deschenes/tanstack-start-special-char-ssr-bug

Steps to Reproduce the Bug or Issue

  1. install the deps and run the app
  2. Open the app (it should redirect you to the right url)
  3. reload the page
  4. Check the console

Expected behavior

Nothing should happens, no error in the console

Screenshots or Videos

Image

Platform

  • Start version : ^1.131.26

Additional context

It seems to only happen when their is a special character in the url.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions