fix(ui): preserve url slashes for root workspace (#14294)

This commit is contained in:
Shoubhit Dash
2026-02-20 18:32:48 +05:30
committed by GitHub
parent ac0b37a7b7
commit 1de12604cf

View File

@@ -150,6 +150,8 @@ function createThrottledValue(getValue: () => string) {
function relativizeProjectPaths(text: string, directory?: string) { function relativizeProjectPaths(text: string, directory?: string) {
if (!text) return "" if (!text) return ""
if (!directory) return text if (!directory) return text
if (directory === "/") return text
if (directory === "\\") return text
return text.split(directory).join("") return text.split(directory).join("")
} }