We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9abdcd commit c288453Copy full SHA for c288453
src/publish/confluence/api/index.ts
@@ -79,7 +79,8 @@ export class ConfluenceClient {
79
): Promise<Content[]> {
80
const cqlContext =
81
"%7B%22contentStatuses%22%3A%5B%22archived%22%2C%20%22current%22%2C%20%22draft%22%5D%7D"; //{"contentStatuses":["archived", "current", "draft"]}
82
- const cql = `title="${title}" and space=${space.key}&cqlcontext=${cqlContext}`;
+ const encodedTitle = encodeURIComponent(title);
83
+ const cql = `title="${encodedTitle}" and space=${space.key}&cqlcontext=${cqlContext}`;
84
const result = await this.get<ContentArray>(`content/search?cql=${cql}`);
85
return result?.results ?? [];
86
}
0 commit comments