sveltejs / sveltejs/kit

Using tilde as url route breaks hot reload

Open
#9,505 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

blocked by upstream
Dominant language
JavaScript
Stars
20.8k
Forks
2.3k
Avg merge
1d 16h
Merged PRs (30d)
156

Description

Describe the bug

When using a tilde character (~) as a route in a URL, the hot reloading feature in the development server breaks.

Tilde is a unreserved valid URL character:
https://www.rfc-editor.org/rfc/rfc3986#section-2.3

Reproduction

https://github.com/ak4zh/tilde-kit

Logs

No response

System Info
System:
    OS: Linux 6.1 Pop!_OS 22.04 LTS
    CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
    Memory: 3.66 GB / 15.57 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 19.3.0 - /usr/local/bin/node
    npm: 9.3.1 - /usr/local/bin/npm
  Browsers:
    Brave Browser: 110.1.48.171
    Chrome: 110.0.5481.177
    Firefox: 110.0.1
  npmPackages:
    @sveltejs/adapter-auto: ^2.0.0 => 2.0.0 
    @sveltejs/kit: ^1.5.0 => 1.13.0 
    svelte: ^3.54.0 => 3.57.0 
    vite: ^4.2.0 => 4.2.1
Severity

annoyance

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the tilde-kit reproduction and the development server's hot-reloading entry point; verify how a route containing ~ is handled. Done means the reproduction's tilde route continues to hot reload normally, with coverage added if the relevant test location can be identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vite
Domain
devtools, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.