Skip to content

regression: can't prerender unicode paths #2000

Closed
@datio

Description

@datio

Describe the bug

Greek character paths can't properly resolve.

There's a regression from #1062 when a unicode path is visit'ed because of the following change:

https://github.com/sveltejs/kit/blame/2a1e9795ad9773e04669a7b9d0234caa0b688ade/packages/kit/src/core/adapt/prerender.js#L227

If it's changed, say, to:

await visit(decodeURI(path), parsed.pathname.replace(config.kit.paths.base, ''));

It builds correctly.

Reproduction

Same as: sveltejs/sapper#1174

Logs

No response

System Info

System:
    OS: Linux 5.8 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
    Memory: 14.31 GB / 31.33 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Browsers:
    Firefox: 90.0
  npmPackages:
    @sveltejs/adapter-node: ^1.0.0-next.35 => 1.0.0-next.35 
    @sveltejs/kit: ^1.0.0-next.137 => 1.0.0-next.137 
    svelte: ^3.34.0 => 3.40.1 


### Severity

blocking all usage of SvelteKit

### Additional Information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions