anytype-ts
anytype-ts copied to clipboard
file:// links with special characters not working
Have you read a contributing guide?
- [x] I have read CONTRIBUTING.md
- [x] I have searched the existing issues and didn't find any that were similar
- [x] I have considered creating a pull request with fixes instead of a bug report and want to proceed
Current Behavior
I am experiencing an issue with file:// links in Anytype, specifically when the local file paths contain special characters such as accents (e.g., é, è, à). While when correctly encoded, these links work correctly in other applications, Anytype does not seem to interpret them properly.
Expected Behavior
The file:// link should open the file correctly when clicked in Anytype.
Steps To Reproduce
- SMB path accessible through windows explorer : \mysmbserver.local\first level directory\deuxième niveau
- Create a bookmark object with source : file://mysmbserver.local/first%20level%20directory/deuxiC3%A8me%20niveau
- Click on the path and "open the link"
Environment
- OS: Windows
- Version: 11
Anything else?
The issue occurs only in Anytype. The same file:// links work correctly in other applications. I have tried using both relative and absolute paths, but the issue persists. I have also tried renaming files and folders to remove special characters, which resolves the issue, but this is not a practical long-term solution. Some special characters look OK (like spaces) but not accents. I tried lots of combinations without any success