mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 10:27:33 +00:00
On macOS and Linux a backslash is an ordinary filename character, but absolutePathToFileUrl converted every backslash into a path separator, so typing /tmp/site\draft.html opened /tmp/site/draft.html instead. Keep backslashes (encoded as %5C) for rooted paths when the local host is not Windows. On Windows every path still has backslashes normalized to slashes, so drive, UNC and rooted /foo\bar inputs behave as before. Fixes #42256 Co-authored-by: Neil <neil@stably.ai>