We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ce811 commit aa9489fCopy full SHA for aa9489f
src/utils/workspaceApi.ts
@@ -12,7 +12,7 @@ export function useWorkspaceApi() {
12
showHidden = false
13
): Promise<FileType[]> {
14
const url = new URL(
15
- `/api/v2/conversations/${conversationId}/workspace${path ? `/${path}` : ''}`,
+ `/api/v2/conversations/${conversationId}/workspace${path ? `/${encodeURIComponent(path)}` : ''}`,
16
api.baseUrl
17
);
18
url.searchParams.set('show_hidden', showHidden.toString());
0 commit comments