Skip to content

Commit 7eba360

Browse files
committed
Use the new constant WSC_RPC_API_URL.
See WoltLab/WCF#5989
1 parent 71b73a9 commit 7eba360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/javascript/components_rpc_api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function renderComment(
2929
objectTypeId: number | undefined = undefined
3030
): Promise<ApiResult<Response>> {
3131
const url = new URL(
32-
`${window.WSC_API_URL}index.php?api/rpc/core/comments/${commentId}/render`
32+
`${window.WSC_RPC_API_URL}core/comments/${commentId}/render`
3333
);
3434
url.searchParams.set("messageOnly", messageOnly.toString());
3535
if (responseId !== undefined) {

0 commit comments

Comments
 (0)