fix: Backslash-Support im File-Explorer für Chat und Benutzerverwaltung

WorkspaceHelper gibt native Pfade zurück, Frontend-Logik unterstützt beide Separatoren.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MelekiandClaude Opus 4.6 committed 2026-04-17 10:41:32 +02:00
1 parent 1526891cd9
commit 4e2815ebd3
3 files changed
+12 -9

No files matched your search

+2 -3
View File
@@ -27,12 +27,11 @@ public static class WorkspaceHelper
}
/// <summary>
/// Gibt den relativen Pfad zurück – immer mit Forward-Slashes (für Agent-Output/API).
/// Gibt den relativen Pfad zurück – mit nativen Separatoren (Backslash auf Windows, / auf Linux).
/// </summary>
internal static string GetRelativePath(string relativeTo, string path)
{
var rel = Path.GetRelativePath(relativeTo, path);
return IsWindows ? rel.Replace('\\', '/') : rel;
return Path.GetRelativePath(relativeTo, path);
}
/// <summary>