Skip to content

Tildes break directory autocomplete #9990

@marbens-arch

Description

@marbens-arch

What happened?

When you go to create a new folder and use ~ as a shortcut for your home directory, autocomplete stops working.

Here's what it looks like with ~ (there is no autocomplete):
Image

And with /home/marcus (real path of my home directory):

Image

This behavior (paired with the log output) is strange, as calling the REST API directly through curl with tildes behaves correctly and lists everything in my home directory.

Syncthing version

v1.29.3

Platform & operating system

(Arch, with all optional repositories enabled) Linux (64-bit AMD)

Browser version

LibreWolf 136.0.1

Relevant log output

2025-03-14 10:24:45 http: GET "/rest/system/browse?current=%2Fhome%2Fmarcus%2F": status 200, 1473 bytes in 0.94 ms
2025-03-14 10:26:21 http: GET "/rest/svc/random/string?length=10": status 200, 29 bytes in 0.13 ms
2025-03-14 10:26:21 http: GET "/rest/config/defaults/folder": status 200, 1361 bytes in 0.16 ms
2025-03-14 10:26:23 http: GET "/rest/system/browse?current=~": status 200, 21 bytes in 0.21 ms
2025-03-14 10:26:24 http: GET "/rest/system/browse?current=~%2F": status 200, 1473 bytes in 1.10 ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA problem with current functionality, as opposed to missing functionality (enhancement)needs-triageNew issues needed to be validated

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions